

$.package(


"comm/extend/qmcgi.js",


[],






function(ay)
{
var 
ff="QMCGI/11.08.30",

aE=$.ctor_(),

zU=aE.prototype.ajax;





aE.extend("version",ff);





aE.extend("method",(
function()
{
var
aeL="\u7CFB\u7EDF\u5F02\u5E38",
abU="\u8BF7\u6C42\u8D85\u65F6",
adG="\u4F1A\u8BDD\u8FC7\u671F",
aaZ="\u94FE\u63A5\u5F02\u5E38",

JO="cgi exception",
Kg="<!--"+JO+"-->",
abd="cgiexception",
acz="verifycode",
aej="folderpwd",
Al={errcode:"-2",errmsg:aeL};

function Ai(bq,rZ,fF,uX)
{
var ax=[],KQ,Lw,Kx;
for(var i=0;i<bq.length;i++)
{
switch(bq[i].name)
{
case"verifykey":
rZ&&(bq[i].value=rZ)&&(KQ=true);
break;
case"verifycode":
fF&&(bq[i].value=fF)&&(Lw=true);
break;
case"verifycode_cn":
uX&&(bq[i].value=uX)&&(Kx=true);
break;
}
ax.push(bq[i]);
}
!KQ&&rZ&&(ax.push({name:"verifykey",value:rZ}));
!Lw&&fF&&(ax.push({name:"verifycode",value:fF}));
!Kx&&uX&&(ax.push({name:"verifycode_cn",value:uX}));
return ax;
}
return(
{
ajaxVerifyCode_:function(bn,bV,bq,ar)
{
var ad=this,
bi=bn||{},
aZ=bV,
aL=aZ.script.match(/verifyCode\(.*?,\s*(.*?)\s*\)/),
zV=(aL&&aL[1]||"").slice(1,-1);
aZ.type=acz;
aZ.verify=function(fF)
{
var cF=bi.vData;

if(ad.isArr(cF))
{
bi.vData=Ai(cF.slice(0),zV,fF,fF);
}
else if(ad.isObj(cF))
{
bi.vData=ad.extend({},cF,
{
verifykey:zV,
verifycode:fF,
verifycode_cn:fF
});
}
else
{
var ax=[],
dO=cF.split("&"),Ar,gw,nm;
for(var i=0;i<dO.length;i++)
{
Ar=dO[i].split("=");
ax.push({name:Ar[0],value:Ar[1]});
}
ax=Ai(ax,zV,fF,fF);
ad.each(ax,function(ag)
{
nm=[ag.name,"=",ag.value].join("");
gw=gw?[gw,"&",nm].join(""):nm;
});
bi.vData=gw;
}

return zU.call(ad,bi);
};
},
ajaxFolderPwd_:function(bn,bV,bq,ar)
{
var ad=this,
bi=bn||{},
aZ=bV;
aZ.type=aej;
aZ.folderpwd=function()
{
return zU.call(ad,bi);
};
},
ajaxSessionTimeout_:function(bn,bV,bq,ar)
{
var ad=this,
bi=bn||{},
aZ=bV,
Zm=function()
{
var cU=window;
while(cU.parent&&cU!=cU.parent&&(cU.parent.QMWin||cU.parent.getTop))
{
cU=cU.parent;
}
return cU;
};
ad.eval("var getTop ="+Zm.toString());
ad.eval(aZ.script);
aZ.message=adG;
},















ajax:function(bn)
{
var ad=this,
bi=ad.extend({},bn),
abt=bi.onerror,
Kk=bi.ondatafilter;

bi.onerror=function(cE,de,bV)
{
var dK=bV||{};
switch(de)
{
case"timeout":
dK.message=abU;
break;
case"error":
dK.message=aaZ;
break;
default:
!bV&&(dK.message=de||"unknow err");
}
$.call(abt,[cE,de,dK]);

};
bi.ondatafilter=function(bq,ar)
{
var cF=bq;



if(ad.isStr(cF)&&cF.indexOf(JO)!=-1&&(cF.indexOf(Kg)<0&&typeof ad.evalVal(cF).errmsg!=='undefined'))
{
var aZ={type:abd},
FX=[],
oe;


if(cF.indexOf(Kg)!=-1)
{
var uP=ad.$("<div>").html(cF).find("div#msg_txt"),
KN=uP.size()>0;
aZ.errcode=KN?uP.attr("code"):Al.errcode;
aZ.message=KN?ad.filteScript(uP.html()):Al.errmsg;
oe=uP.find("script");
}

else
{
aZ.json=ad.evalVal(cF)||Al;
aZ.message=ad.filteScript(aZ.json.errmsg);
oe=ad.$("<div>").html("#ie bug#"
+aZ.json.errmsg).find("script");
}


oe.each(function(YB)
{
FX.push(YB.innerHTML);
}
);
aZ.script=FX.join(";");


if(aZ.script.indexOf("verifyCode")>-1)
{
ad.ajaxVerifyCode_(bi,aZ,cF,ar);
}
else if(aZ.script.indexOf("folderpwd")>-1)
{
ad.ajaxFolderPwd_(bi,aZ,cF,ar);
}
else if(aZ.script.indexOf("s=session_timeout")>=0&&$.sid())
{
ad.ajaxSessionTimeout_(bi,aZ,cF,ar);
}


ad.error(aZ);
}


ad.isFunc(Kk)&&(cF=Kk(cF,ar));

return cF;
};

return zU.call(ad,bi);
}
}
);
}
)()
);
}


);


$.package(


"comm/ctrl/tagevent.js",


[],


function(ay)
{

var ff="TagEvent/11.03.22",
an=QMWin,
aE=an.ctor_();

function Bq(lQ)
{
for(var i=1,bK=arguments.length;i<bK;i++)
{
an.each(arguments[i],function(rA,cj)
{
if(lQ[cj])
{
an.each(rA,function(bG,sJ)
{
if(!lQ[cj][sJ])
{
lQ[cj][sJ]=bG;
}
}
);
}
else
{
lQ[cj]=rA;
}
}
);
}

return lQ;
};




an.createLib(
"TagEventCatcher",
{bStatic:true},
function(av)
{
return(
{








merge:Bq
}
);
}
);

function EU(fi)
{
var ek=fi||{},
eF=ek.rule&&ek.rule()||[],
cG=ek.events&&ek.events()||{},
qe=ek.eventLibs&&ek.eventLibs()||[];
$.each(qe,function(JN)
{
var $=an,
Et=EU($.lib(JN.name));
eF=$.lib("TagEventCatcher").merge(eF,Et.eF);
cG=$.extend(cG,Et.cG);
});
return{ek:ek,eF:eF,cG:cG};
}




an.createCtrl(
"TagEventModHandle",
{},
function(av)
{
return(
{







handle:function(fi,am)
{
var ad=this,
$=ad.$,
aJL=ad.Uv,

ek=fi,
cG=EU(ek);
ad.Tr=$.ctrl("TagEventCatcher",
$.extend(
{
oDom:ek.dom$(),
oRule:cG.eF,
oEvents:cG.cG,
oCallObj:ek
},am)
);
return ad;
},
fire:function()
{
var EO=this.Tr;
EO.fire.apply(EO,arguments);
},







init_:function(ap)
{

var ad=this,
$=ad.superEx_(av,"init_",[ap]).$;
ad.Uv=$.lib("TagEventCatcher");
}
}
);
}
);




an.createCtrl(

"TagEventCatcher",


{},


function(av)
{


var 
Te=
{
click:"ck",
dblclick:"dbl",
mousedown:'md',
mouseup:'mu',
mouseover:'mor',
mousemove:'mm',
mouseout:'mot',
keydown:'kd',
keypress:'kp',
keyup:'ku'
},




TT=an.toMap(
(
"click,dblclick,mousedown,mouseup"
+",mouseover,mousemove,mouseout"
+",keydown,keypress,keyup,scroll"
)
.split(","),
true
),


Bi=0,


EL="__taGeVEntcATChErS__",
UC="un",


EA="__AdDEdeVeNTcAchE__",


rp={}
;




function vu(_aoEvent)
{
EQ(_aoEvent,_aoEvent.type);
}

function AD(_aoEvent,gz,ao)
{
EQ(_aoEvent,"fire",ao||$.target(_aoEvent),gz);
}

function EQ(_aoEvent,cj,ao,gz)
{
var aK=ao||an.target(_aoEvent),
Er=[],nU=[],ru=[],jY=-1,
Uz=Te[cj]||cj,
wi,qm,wa,aLC;
while(aK&&aK.getAttribute)
{

wi=aK===ao?gz:aK.getAttribute(Uz);
wi&&(Er[++jY]=aK)
&&(nU[jY]=wi)
&&(ru[jY]={});


if(jY>-1)
{

qm=aK.getAttribute(UC);

qm&&(ru[jY][qm]=ru[jY][qm]||aK);


wa=aK[EL];

if($.isNum(wa)&&rp[wa]
.Us(
cj,jY+1,Er,nU,ru,_aoEvent
)===false)
{

break;
}
}


aK=aK.parentNode;
}
}

$.addPageUnloadEvent(function()
{
$.each(rp,function(bG,bR)
{
rp[bR]=null;
}
);
}
);

return(
{









getDom$:function()
{
return this.dp;
},








rule:function()
{
return(
{





}
);
},








events:function()
{
return(
{
}
);
},









merge:Bq,









fire:AD,
















init_:function(ap)
{

var ad=this,
$=ad.superEx_(av,"init_",[ap]).$,
_oDom=ap&&($.is(ap.oDom)?ap.oDom.data(0):ap.oDom),
Eq=$.isDom(_oDom);


if(!Eq||!$.isWinEqual($.inWin(_oDom)))
{

$.error(!Eq
?"new ctrl cfg.oDom is not dom obj"
:"new ctrl cfg.oDom's window is not match ctrl's window",
[this.name_()+"[TagEventCatcher].init_"]);
}


ad.dp=$.$(_oDom);
ad.uQ=ad.Vc(ap.oRule||ad.rule());
ad.mn=ap.oEvents||ad.events();
ad.aKZ=ap.sDriven||"event";
ad.UA=ap.oCallObj||ad;


return ad.UH();
},









UH:function()
{
var ad=this,
$=ad.$;

if($.isNum(ad.EI))
{
return ad;
}


ad.dp.data(0)[EL]=ad.EI=Bi++;
rp[ad.EI]=ad;




$.each(ad.uQ,ad.Tp,{oContext:ad});


return ad;
},


Tp:function(aKP,cj)
{
var ad=this,
$=ad.$,
ak=ad.dp;

if(TT[cj])
{

var EK=ad.$.data(0),
Ev=EK[EA]
||(EK[EA]={}),
rb=Ev[cj]
||(Ev[cj]=[]),
Eg=true,
rh;

for(var i=rb.length-1;i>=0;i--)
{
rh=$.$(rb[i]);


if(rh.contain(ak))
{
Eg=false;
break;
}


if(ak.contain(rh))
{
rh.delEvent(cj,vu);
rb.pop();
}
}

if(Eg)
{
ak.addEvent(cj,vu);
rb.push(ak.data(0));
}
}
else
{
ak.addEvent(cj,vu);
}

return ad;
},


Us:function(cj,Fe,
EP,TL,Ts,_aoEvent)
{
var ad=this,
$=ad.$,
eF=ad.uQ;

if(eF=eF[cj])
{
for(var i=0;i<Fe;i++)
{

var nU=TL[i].split(","),
wg=true;

for(var j=0,_nLen=nU.length;j<_nLen;j++)
{
var EW=nU[j],
rv=eF[EW],
Ek,cN;


if(!rv)
{
break;
}


if(Ek=rv.sContext)
{
for(var k=i;k<Fe;k++)
{

if(cN=Ts[k][Ek])
{
break;
}
}
}
else
{
cN=EP[i];
}

if(cN)
{
var ER=rv.sProcess||EW;
wg=wg
&&$.safe(ad.mn[ER],
[ad.name_(),ER].join("."))

.call(ad.UA,_aoEvent,EP[i],cN)!==false
&&(rv.bPropagable!==false);
}
}

if(!wg)
{

return false;
}
}
}


return true;
},


Vc:function(UV)
{
return UV;
}
}
);
}
);


}


);


$.package(



"bottle/component/hidediv.js",


[],


function(ay)
{

var ff="Hidediv/11.9.5",
an=QMWin,
aE=$.ctor_();

aE.extend("version",ff);



aE.extend("method",(function()
{
var an=QMWin,
aj={};

aoY=function()
{
var ad=this;
ad.bIsShow=true;
if(an.isFunc(ad.fShow))
{
ad.fShow.call(this);
}
else
{
ad.oItems.css('display','block');
}
};

cYC=function()
{
};

cYC=function()
{
};

abv=function(_aoDom)
{

var ad=this;

ad.bIsShow=false;
if(an.isFunc(ad.fHide))
{
ad.fHide();
}
else
{
ad.oItems.css('display','none');
}
};

exO=function()
{
};

drd=function(_aoEvent)
{
var ad=$.$(this).attr('moCfg');

clearTimeout(ad.nTimerHide);
ad.bIsItemOver=true;

var aK=_aoEvent.originalTarget||_aoEvent.srcElement;
try
{
if(aK.parentNode&&aK.parentNode==ad.oItems.data(0))
{
var aHf=aK.parentNode.children;
for(var i=0,len=aHf.length;i<len;i++)
{
if(aK===aHf[i])
{
if(ad.nSelectItemIndex>-1&&ad.nSelectItemIndex!=i)
{
ad.fOnItemSelectChange();
}
ad.nSelectItemIndex=i;
cDF.call(ad,aK);
break;
}
}
}
}
catch(e)
{
return false;
}
};

doD=function(_aoEvent)
{
var ad=$.$(this).attr('moCfg'),
aK=_aoEvent.originalTarget||_aoEvent.srcElement;
if(!boo(_aoEvent,aK))
{
clearTimeout(ad.nTimerHide);
return false;
}

ad.bIsItemOver=false;

ad.oItems.find(ad.sItemFlag).rmClass(ad.sGuessHighLightClass);
ad.nSelectItemIndex=-1;

if(!ad.bIsItemOver&&!ad.bIsContainerOver)
{
ad.nTimerHide=setTimeout(function(){
abv.call(ad)
},
ad.nDelayHideTime);
}

};

cXJ=function()
{
var ad=$.$(this).attr('moCfg');

var aJJ=ad.oItems.find(ad.sItemFlag).data(ad.nSelectItemIndex);

ad.oContainer.data(0).innerHTML=aJJ.innerHTML;

if(ad.preValue!=aJJ.innerHTML)
{
ad.fOnContainerChange(ad.preValue,aJJ.innerHTML,aJJ);
ad.preValue=aJJ.innerHTML;

}

for(var i=0;i<ad.oItemAttr.length;i++)
{
ad.oContainer.attr(ad.oItemAttr[i],$.$(aJJ).attr(ad.oItemAttr[i]));
}
abv.call(ad);
};

cpR=function()
{
var ad=$.$(this).attr('moCfg');
clearTimeout(ad.nTimerHide);
ad.bIsContainerOver=true;
};

cvb=function()
{
var ad=$.$(this).attr('moCfg');
ad.bIsContainerOver=false;
if(!ad.bIsItemOver&&!ad.bIsContainerOver)
{
clearTimeout(ad.nTimerHide);
ad.nTimerHide=setTimeout(function(){
abv.call(ad)
},
ad.nDelayHideTime);
}
};

cfY=function()
{

var ad=$.$(this).attr('moCfg');
if(ad.bIsShow)
{
ad.bIsShow=false;
abv.call(ad);
}
else
{
ad.bIsShow=true;
aoY.call(ad);
if(ad.remember)
{
dhv.call(ad,ad.oContainer.data(0).innerHTML)
}
}
};

dhv=function(VW)
{
var ad=this;

var aAJ=ad.oItems.find(ad.sItemFlag);
for(var i=0,len=aAJ.size();i<len;i++)
{
if(aAJ.data(i).innerHTML==VW)
{
cDF.call(this,aAJ.data(i));
ad.oItems.data(0).scrollTop=aAJ.data(i).offsetTop-30;
break;
}
}
};

aFZ=function(parentNode,childNode)
{
var ad=this;

if(parentNode.contains){
return parentNode!=childNode&&parentNode.contains(childNode);
}else{
try{
return!!(parentNode.compareDocumentPosition(childNode)&16);
}catch(e){return false;}
}
};

boo=function(e,target)
{
var ad=this;

try{
if(e.type=="mouseover"){
return!aFZ(target.parentNode,e.relatedTarget||e.fromElement)&&!((e.relatedTarget||e.fromElement)===target);
}else{
return!aFZ(target.parentNode,e.relatedTarget||e.toElement)&&!((e.relatedTarget||e.toElement)===target);
}
}catch(e){
return true;
}
};

cDF=function(Ml)
{
var ad=this;

ad.oItems.find(ad.sItemFlag).rmClass(ad.sGuessHighLightClass);
$.$(Ml).addClass(ad.sGuessHighLightClass);
};

dzT=function(bP)
{
var ad=this.moCfg;
ad.oContainer.data(0).innerHTML=bP;
};

daN=function(HX)
{
var ad=this.moCfg;

var aAJ=ad.oItems.find(ad.sItemFlag);
if(HX<aAJ.size())
{
ad.oContainer.data(0).innerHTML=aAJ.data(HX).innerHTML;
}

};

eb=function(aY)
{

var aO={};
for(var obj in aY)
{
aO[obj]=aY[obj];
}

if(aO.oContainer.size()<1)
{
return false;
}

aO.preValue=aO.oContainer.data(0).innerHTML;
aO.nSelectItemIndex=-1;
aO.nTimerHide=-1;
aO.bIsItemOver=false;
aO.bIsShow=false;
aO.bIsContainerOver=false;

aY.oTopContainer&&(aY.oTopContainer.attr('moCfg',aO).addEvent('click',cfY).addEvent('mouseover',cpR).addEvent('mouseout',cvb));

aY.oContainer.attr('moCfg',aO).addEvent('click',cfY).addEvent('mouseover',cpR).addEvent('mouseout',cvb);

aY.oItems.attr('moCfg',aO).addEvent('click',cXJ).addEvent('mouseover',drd).addEvent('mouseout',doD);

abv.call($.$(aY.oItems).attr('moCfg'));

return aO;
};


return{

createHidediv:function(aO)
{
var ad=this;

var aj=
{
fShow:null,
fBeforeshow:null,
fHide:null,
fBeforehide:null,
oTopContainer:null,
oContainer:QMWin.Q('div[un=hidediv]'),
oItems:QMWin.Q('div[un=hidedivitems]'),

fOnContainerChange:function(){},
fOnItemSelectChange:function(){},

sItemFlag:'p',

sGuessHighLightClass:'menu_item_hover',
nDelayHideTime:500,
sArrowStyle:'',

oItemAttr:['name','value'],
remember:false 
};
var aY={};

for(var obj in aj)
{
aY[obj]=aj[obj];
}

for(var obj in aO)
{
aY[obj]=aO[obj];
}






return{
moCfg:eb(aY),
fSetValue:dzT,
fSetSelectIndex:daN
}
}
}}
)());
}



);



$.package(
"bottle/lib/template.js",
[],
function(ay)
{
var $=ay,
al=QMWin;



al.createLib(
"PLP.Template",

{bStatic:true},

function(av)
{

var SD=[],
aEg=['PLP.TmplCommon','PLP.TmplList','PLP.TmplMail','PLP.TmplCompose','PLP.TmplGarden'];

var aS=al.path("img"),
bk=al.sid(),
gp=bk,

aeR=al.TE([

'$@$if($magicid$==11&&($guessstat$!="1"||$guessfail$=="1"))$@$',
'$@$if(($guessstat$!="1"||$guessfail$=="1")&&$isposter$=="0")$@$',
"\u533f\u540d\u8868\u767d\u8005$guessstat$ $guessfail$ $isposter$",
'$@$else$@$',
'$@$if($magicid$==11)$@$',
'$@$if($uininfo.remark$)$@$',
'$uininfo.remark$',
'$@$else if($uininfo.beachname$)$@$',
'$uininfo.beachname$',
'$@$else$@$',
'\u533f\u540d\u74f6\u53cb',
'$@$endif$@$',
'$@$else$@$',
'$@$eval $pick$?"\u533f\u540d\u8868\u767d\u8005 $magicid$":($uininfo.remark$||$uininfo.beachname$||"\u533f\u540d\u74f6\u53cb")$@$',
'$@$endif$@$',
'$@$endif$@$',
'$@$else if($uininfo.remark$)$@$',
'$uininfo.remark$',
'$@$else if($uininfo.beachname$)$@$',
'$uininfo.beachname$',
'$@$else$@$',
'\u533f\u540d\u74f6\u53cb',
'$@$endif$@$'
]),




CS=al.TE([
'<ul class="$@$if($isshow$==false)$@$opacity5$@$endif$@$">',

'$@$for($items$)$@$',
'$@$if($_idx_$<9)$@$',
'<li mailid="$mailid$" ck="rdbtl" curstatus="$curstatus$" oldstatus="$oldstatus$" loc="$loc$" beachname="$@$html($uininfo.beachname$)$@$" magicid="$magicid$" remark="$@$html($uininfo.remark$)$@$" point="$point$" otheruin="$otheruin$" qqicon="$uininfo.qqicon$" un="paper">',

'<div class="paper_list_content $@$if($otheruin$!=10000)$@$$@$if($unfound$==1)$@$bottle_unfounded$@$else if($unfound$==0)$@$bottle_founded$@$endif$@$$@$endif$@$ new_bottle">',

'$@$if($magicid$==11&&$guessstat$=="0"&&$pick$==true)$@$',
'<img src="',aS,'bottle/secret_avator.png" class="avator" imgok="true"/>',



'$@$else if($otheruin$==0)$@$',
'<img class="avator" imgok="true" src="',aS,'bottle/noavator.png"/>',
'$@$else$@$',
'<img src="$@$if($uininfo.qqicon$)$@$$uininfo.qqicon$$@$else$@$/cgi-bin/getqqicon?uin=0$@$endif$@$" class="avator" imgok="false"/>',
'$@$endif$@$',
'<div class="content">',
'<div class="infotext">',

'$@$if($magicid$==11&&$digest$)$@$',






















'<p class="name"><span class="bold" love="true">',aeR,'</span></p>',
'<p class="subinfo" title="',aeR,'\u53d1\u6765\u4e86\u65b0\u7684\u6d88\u606f"><span class="">\u53d1\u6765\u4e86\u65b0\u7684\u6d88\u606f</span></p>',
'$@$else$@$',
'$@$if($isnew$==true)$@$',
'<p class="info" title="\u60a8\u6536\u5230\u4e00\u4e2a\u65b0\u74f6\u5b50">\u6536\u5230\u4e00\u4e2a',
'$@$if($magicid$==0)$@$',
'\u6f02\u6d41\u74f6',
'$@$else if($magicid$==1)$@$',
'\u540c\u57ce\u74f6',
'$@$else if($magicid$==3)$@$',
'\u6f02\u6d41\u74f6',
'$@$else if($magicid$==4)$@$',
'\u63d0\u95ee\u74f6',
'$@$else if($magicid$==5)$@$',
'\u795d\u613f\u74f6',
'$@$else if($magicid$==6)$@$',
'\u53d1\u6cc4\u74f6',
'$@$else if($magicid$==7)$@$',
'\u771f\u8bdd\u74f6',
'$@$else if($magicid$==8)$@$',
'\u4ea4\u5f80\u74f6',
'$@$else if($magicid$==9)$@$',
'\u4f20\u9012\u74f6',
'$@$else if($magicid$==10)$@$',
'\u65b0\u74f6\u5b50',
'$@$else if($magicid$==11)$@$',
'\u8868\u767d\u74f6',
'$@$else if($magicid$==12)$@$',
'\u751f\u65e5\u74f6',
'$@$else if($magicid$==13||$magicid$==14||$magicid$==15)$@$',
'\u5fc3\u60c5\u74f6',
'$@$else if($magicid$==16)$@$',
'\u5b9a\u5411\u74f6',
'$@$else if($magicid$==17)$@$',
'\u5b9a\u5411\u74f6',
'$@$else$@$',
'\u65b0\u74f6\u5b50',
'$@$endif$@$',
'</p>',
'$@$else$@$',
'<p class="name"><span class="bold">',aeR,'</span></p>',
'<p class="subinfo" title="',aeR,'\u53d1\u6765\u4e86\u65b0\u7684\u6d88\u606f">\u53d1\u6765\u4e86\u65b0\u7684\u6d88\u606f</p>',
'$@$endif$@$',
'$@$endif$@$',
'</div>',










'$@$if($magicid$==11&&(($guessstat$!="1"||$guessfail$=="1")&&$isposter$=="0"))$@$',
'<div class="opera"><a class="btn left" href="#" ck="read" func="guess">\u731c\u731cTA\u662f\u8c01\uff1f</a></div>',
'$@$else if($magicid$==11&&$digest$)$@$',
'<div class="opera"><a class="btn left" href="#" ck="read">\u67e5\u770b</a></div>',
'$@$else$@$',
'<div class="opera"><a class="btn left" href="#" ck="readandrly">\u67e5\u770b\u5e76\u56de\u5e94</a></div>',
'$@$endif$@$',
'<a class="ico_close_circle" href="#" ck="cls" mailid="$mailid$"></a>',
'</div>',

'</div>',

'</li>',
'$@$endif$@$',
'$@$endfor$@$',
'</ul>'
]),


bza=al.TE([
'<div class="favour_pannel minsize" tabindex="0" hidefocus="true">',
'<div class="favourContentAll">',
'<div class="" un="list"></div>',
'</div>',
'<div class="outerPanel">',
'<div class="top_hightlight"></div>',
'<div class="body_hightlight"></div>',
'</div>',
'</div>'
]),

brp=al.TE([
'<span class="familiar_percent $@$if($uininfo.iswtcnt$>50)$@$familiar_percent_high$@$endif$@$"  title="$@$if($uininfo.iswtcnt$==0)$@$\u4f60\u4eec\u8fd8\u6ca1\u6709\u8fdb\u884c\u4eb2\u5bc6\u4efb\u52a1\u54e6$@$else if($uininfo.iswtcnt$<50)$@$\u4eb2\u5bc6\u7a0b\u5ea6\uff1a\u964c\u751f\u4eba$@$else if($uininfo.iswtcnt$<75)$@$\u4eb2\u5bc6\u7a0b\u5ea6\uff1a\u719f\u4eba$@$else if($uininfo.iswtcnt$<90)$@$\u4eb2\u5bc6\u7a0b\u5ea6\uff1a\u670b\u53cb$@$else if($uininfo.iswtcnt$<100)$@$\u4eb2\u5bc6\u7a0b\u5ea6\uff1a\u81f3\u4ea4$@$else$@$\u4eb2\u5bc6\u7a0b\u5ea6\uff1a\u6b7b\u515a$@$endif$@$" >',
'<span class="progress" style="width:$uininfo.iswtcnt$%"></span>',
'</span>'
]),


EH=al.TE([


'<a href="#" style="display:none" ck="refresh" percent="10" class="refresh">\u5237\u65b0</a>',
'<a href="#" style="display:none" ck="refreshicon" class="refresh">\u5237\u65b0\u74f6\u53cb\u5934\u50cf</a>',
'$@$if($showtip$==true)$@$',
'<div class="new_feature_tips" style="display:none;"><div class="myPageTips"></div></div>',
'$@$endif$@$',

'<div class="online_tips close_help_tips" ><span class="onlinetipsBox"><div class="content"><p>\u60a8\u597d\u4e45\u6ca1\u6765\u6d77\u6ee9\uff0c\u5982\u679c\u4e0d\u60f3\u6536\u5230\u6f02\u6d41\u74f6\uff0c\u53ef\u4ee5\u5230\u8fd9\u91cc\u5173\u95ed\u54e6</p></div></span><span class="icon online_tips_arrow"></span></div>',

'<div class="toolbar">',
'<a hidefocus="" class="avator_div" ck="gogarden" title="\u67e5\u770b\u6211\u7684\u79d8\u5bc6\u82b1\u56ed" href="#" un="showicon" ><span class="avator_light"></span><span class=" updateDot" style="display:none" un="gardenupdnum"><span un="num"></span>\u4e2a\u74f6\u53cb\u66f4\u65b0<span class="css3Arrow"></span></span><img class="avator selficon" src="$icon40$"></a><a hidefocus="" class="iconBox" ck="changesence" href="#" title="\u5207\u6362\u573a\u666f" ><span class="icon ico_scene"></span></a><a hidefocus="" class="iconBox" ck="showsetting" href="#" title="\u8bbe\u7f6e" ><span class="icon ico_setting"></span></a>',
'<div class="toolbarbg"></div>',
'</div>'
]),




To=al.TE([

'<div class="toolbar_wrap">',
'$@$if($isFirst$)$@$',
'$@$if($tipRule$==0)$@$',

'<div class="bubble_tips tips_throwbottle">',
'<a class="ico_close_circle " href="#" ck="cls"></a>',
'<div class="tips_triangle"></div>',
'<span class="tips_icon ico_bottle_all"></span>',
'<div class="tips_content">',
'<h1 class="l_size bold">\u6709\u7a7a\u7684\u8bdd\uff0c\u53bb\u770b\u770b\u6211\u7684\u74f6\u5b50\u3002</h1>',
'<p class="b_size">\u5728\u8fd9\u91cc\u53ef\u4ee5\u627e\u5230\u60a8\u6254\u7684\uff0c\u4ee5\u53ca\u56de\u5e94\u7684\u6240\u6709\u74f6\u5b50\u3002</p>',
'</div>',
'</div>',
'$@$else if($tipRule$==1)$@$',

'<div class="bubble_tips tips_throwbottle">',
'<a class="ico_close_circle " href="#" ck="cls"></a>',
'<div class="tips_triangle"></div>',
'<span class="tips_icon ico_bottle_throw"></span>',
'<div class="tips_content">',
'<h1 class="l_size bold">\u4e0d\u77e5\u9053\u8054\u7cfb\u8c01\uff1f</h1>',
'<p class="b_size">\u8bd5\u8bd5\u533f\u540d\u4ea4\u6d41\u7684\u6f02\u6d41\u74f6\u3002<br/>\u5199\u4e0b\u60f3\u8bf4\u7684\u8bdd\uff0c\u6295\u5411\u5927\u6d77\u3002<br/>\u6216\u8bb8\uff0c\u6709\u4e2a\u964c\u751f\u4eba\u4f1a\u6361\u8d77\u3002</p>',
'</div>',
'</div>',
'$@$else if($tipRule$==2)$@$',

'<div class="bubble_tips tips_getbottle">',
'<a class="ico_close_circle" href="#" ck="cls"></a>',
'<div class="tips_triangle"></div>',
'<span class="tips_icon ico_bottle_get"></span>',
'<div class="tips_content">',
'<h1 class="l_size bold">\u6ca1\u6709\u65b0\u74f6\u5b50\uff1f\u635e\u4e00\u4e2a\u770b\u770b\u3002</h1>',
'</div>',
'</div>',
'$@$endif$@$',
'$@$endif$@$',
'<a class="icon btnThrow" ck="clk" act="WineCooler" href="#" hideFocus="true">$@$if($bottle$>0)$@$<div class="numBg"><p>$bottle$</p></div>$@$endif$@$</a>',
'<a class="icon btnGet" ck="clk" act="Pick" href="#" hideFocus="true">$@$if($picking$>0)$@$<div class="numBg" un="oldpoint"><p>$picking$</p></div>$@$endif$@$</a>',
'<a class="icon btnBottle" ck="clk" act="TableList" href="#" hideFocus="true">$@$if($unread$>0)$@$<div class="numBg"><p>$unread$</p></div>$@$endif$@$</a>',
'<div><a href="#" hideFocus="true" ck="tar" title="\u6c42\u5b9a\u4f4d" class="icon ico_position" style="$@$if($point$<1)$@$ display:none; $@$endif$@$"></a></div>',
'</div>',
'$@$if(!$isFirst$)$@$',
'$@$if($magicBottle$!=0)$@$',

'<div class="bubble_tips" id="tmptip" style="display:none;">',
'<div class="dialog_box infotext">',
'<a class="ico_close_circle " href="#" ck="cls"></a>',
'<div class="tips_content">',
'<h1 class="l_size bold">\u60a8\u7684\u9b54\u6cd5\u74f6\u5373\u5c06\u5230\u671f</h1>',
'<p class="b_size">\u60a8\u635e\u5230\u7684\u8fd1\u6d77\u74f6\u548c\u7167\u7247\u74f6\u5c06\u57282011\u5e741\u670824\u65e5\u5230\u671f\uff0c<br/>\u5230\u671f\u540e\u74f6\u5b50\u5c06\u81ea\u52a8\u6d88\u5931\uff0c\u8bf7\u5c3d\u5feb\u4f7f\u7528\u3002</p>',
'</div>',
'<span class="tips_triangle"></span>',
'</div>',
'</div>',
'$@$endif$@$',
'$@$endif$@$'

]),




cb=al.TE([
'<div class="dialog_box infotext">',
'<span class="$@$if($type$=="success"||$type$=="fail")$@$$type$$@$else$@$icon_magic ico_dialog$plaintype$$@$endif$@$"></span>',
'<div class="dialog_content $@$if($type$=="success"||$type$=="fail"||$plaintype$!="plain"||$type$!="")$@$dialog_content_text$@$endif$@$">',
'$msg$',
'</div>',
'</div>'
]),

cJD=al.TE([
'$msg$'
]),

bEI=al.TE([
'<div class="dialog_box infotext">',
'<span class="$@$if($type$=="success"||$type$=="fail")$@$$type$$@$else$@$icon_magic ico_dialog$plaintype$$@$endif$@$"></span>',
'<div class="dialog_content $@$if($type$=="success"||$type$=="fail"||$plaintype$!="plain"||$type$!="")$@$dialog_content_text$@$endif$@$">',
'$@$if($type$=="success")$@$',
'<p style="padding-top:8px">$msg$</p>',
'$@$else$@$',
'$msg$',
'$@$endif$@$',
'</div>',
'</div>'
]),

bGd=al.TE([
'<span class="icon ico_finished" style="display:none;"></span>',
'<span class="icon ico_failed" style="display:none;"></span>',
'<span class="icon ico_wait" style="display:none;"></span>',
'<span class="icon ico_bottle" style="display:none;"></span>',
'$@$if($onmouseover$)$@$',
'<span onmouseover="$onmouseover$" onmouseout="$onmouseout$"></span>',
'$@$endif$@$',
'$msg$'
]),

bDb=al.TE([
'<div class="tips" style="padding-top: 33px;">',
'<span class="$type$"></span>',
'$msg$',
'</div>'
]),

bJh=al.TE([
'<h3 class="notice bold">\u516c \u544a</h3>',

'<p class="bold">\u70b9\u4eae\u60a8\u7684\u706f\u5854\uff0c\u4f1a\u6536\u83b7\u66f4\u591a\u74f6\u5b50\u54e6\u3002</p>',
'<p class="imgDemo"><img src="',aS,'/bottle/notice_demo.png"></p>'
]),

ckx=al.TE([
'<h3 class="notice bold" style="font-size:20px;">"\u795e\u68cd\u8282"\u4e00\u79d2\u8131\u5149\u5927\u4f5c\u6218</h3>',
'<p>\u9a6c\u4e0a\u6254\u51fa\u4f60\u9738\u6c14\u5916\u9732\u7684\u4ea4\u5f80\u74f6\uff0c\u5373\u53ef\u6307\u5b9a\u635e\u53d6\u6d77\u91cf\u5f02\u6027\u74f6\u5b50\uff0c\u66f4\u6709</p>',
'<p>\u4f17\u591a\u540c\u57ce\u74f6\u7b49\u4f60\u6765\u635e\u3002\u4eb2\uff0c\u514d\u79ef\u5206\u7684\u54e6\uff01<a class="link_white" target="_blank" href="/cgi-bin/readtemplate?check=false&t=bottle_for1111">\u6d3b\u52a8\u8be6\u60c5</a></p>',
'<p class="imgDemo txt_center"><img class="img_1111demo" src="',aS,'spacer.gif"></p>',
'$@$if($send$)$@$',
'<div class="submitPanel">',
'<a class="btn btn_l " ck="send">\u6254\u4ea4\u5f80\u74f6</a>',
'</div>',
'$@$endif$@$'
]),
cmj=al.TE([
'<h3 class="notice bold" style="font-size:20px;">"\u795e\u68cd\u8282"\u4e00\u79d2\u8131\u5149\u5927\u4f5c\u6218</h3>',
'<p>11\u670811\u65e5\u5f53\u5929\uff0c\u53ea\u8981\u6254\u51fa\u4e00\u4e2a\u4ea4\u5f80\u74f6\uff0c\u5373\u53ef\u6307\u5b9a\u635e\u53d6\u6d77\u91cf\u5f02\u6027</p>',
'<p>\u74f6\u5b50\uff0c\u66f4\u6709\u4f17\u591a\u540c\u57ce\u74f6\u7b49\u4f60\u6765\u635e\u3002\u4eb2\uff0c\u514d\u79ef\u5206\u7684\u54e6\uff01<a class="link_white" target="_blank" href="/cgi-bin/readtemplate?check=false&t=bottle_for1111">\u6d3b\u52a8\u8be6\u60c5</a></p>',
'<p class="imgDemo txt_center"><img class="img_1111demo" src="',aS,'spacer.gif"></p>'
]),
bCL=al.TE([
'<h3 class="notice bold">\u6e29\u99a8\u63d0\u793a</h3>',
'<p class="">\u60a8\u597d\u4e45\u6ca1\u5230\u6d77\u6ee9\u4e0a\u73a9\u4e86\uff0c\u5982\u679c\u60a8\u4e0d\u60f3\u6536\u5230<br/>\u6f02\u6d41\u74f6\uff0c\u53ef\u4ee5\u5230\u8bbe\u7f6e\u4e2d\u5173\u95ed\u54e6\u3002</p>',
'<p class="imgDemo"><img src="',aS,'/bottle/notice_demo2.png"></p>'
]),

awA=al.TE([
'<div class="dialog_box infotext">',
'<a class="ico_close_circle_blue" href="#" ck="cls"></a>',
'<div class="dialog_content dialog_content_text news_notice $@$if($type$)$@$$type$$@$endif$@$">',
'$msg$',
'</div>',
'</div>'
]),

bTk=al.TE([
'<p>\u60a8\u7684\u5730\u533a\u8bbe\u7f6e\u4e0e\u5b9e\u9645\u57ce\u5e02\u4e0d\u7b26\u54e6\uff0c\u5feb\u53bb<a class="link_white" href="#" ck="clk" name="setlocate">\u4fee\u6539</a>\u5427</p>'
]),


bOa=al.TE([
'<p>\u60a8\u6709<span un="num">$len$</span>\u4e2a\u672a\u8bfb\u74f6\u5b50\uff0c<a class="link_white" href="#" ck="clk" name="read" mailid="$mailid$">\u8bf7\u67e5\u770b</a></p>'
]),

pZ=al.TE([
'<p>\u60a8\u6536\u5230\u4e00\u4e2a\u65b0\u74f6\u5b50\uff0c<a class="link_white" href="#" ck="clk" name="read" mailid="$mailid$">\u8bf7\u67e5\u770b</a></p>'
]),


bkT=al.TE([

'<div class="pannel_content bg_paper">',

'<a ck="cls" href="#" class="ico_close_circle_blue"></a>',

'<div class="type_content" style="height:auto;">',

'$@$for($items$)$@$',
'$@$if($count$)$@$',
'<a class="select_box" tabindex="0" href="#" hidefocus ck="clk"  magicid="$magicid$">',
'<span class="ico_bottle bottle_type$magicid$"></span>',
'$@$if($magicid$==16)$@$<span class=""></span>$@$endif$@$',
'<p class="txt_center">',
'$@$if($magicid$==0)$@$\u666e\u901a\u74f6',
'$@$else if($magicid$==8)$@$\u4ea4\u5f80\u74f6',

'$@$else if($magicid$==7)$@$\u771f\u8bdd\u74f6',

'$@$else if($magicid$==3)$@$\u666e\u901a\u74f6',
'$@$else if($magicid$==9)$@$\u4f20\u9012\u74f6',
'$@$else if($magicid$==4)$@$\u63d0\u95ee\u74f6',
'$@$else if($magicid$==5)$@$\u795d\u613f\u74f6',
'$@$else if($magicid$==6)$@$\u53d1\u6cc4\u74f6',
'$@$else if($magicid$==2)$@$\u7167\u7247\u74f6',


'$@$else if($magicid$==13)$@$\u5fc3\u60c5\u74f6',
'$@$else if($magicid$==16)$@$\u5b9a\u5411\u74f6',
'$@$endif$@$',
'</p>',
'$@$if($magicid$==16)$@$',
'<div class="icon ico_bottle_upgrade"></div>',
'$@$endif$@$',
'</a>',

'$@$endif$@$',
'$@$endfor$@$',

'</div>',

'<div class="icon triangle"></div>',

'</div>'
]),

ach=al.TE([
'<div class="nav_con">',
'<div class="$@$if($tab$==0)$@$nav_avarSetting$@$else if($tab$==1)$@$nav_infoSetting$@$else if($tab$==2)$@$nav_sysSetting$@$endif$@$">',
'<a class="bottle_tab nav_left" tabid="1" ck="tab">\u4e2a\u4eba\u4fe1\u606f</a>',

'<a class="bottle_tab nav_right" tabid="2" ck="tab">\u9632\u9a9a\u6270\u8bbe\u7f6e</a>',
'</div>',
'</div>'
]),


aSe=al.T([
'<div class="bottle_tips bottle_open">',
'<span class="tips d_tip">',
'<div class="dialog_box infotext">',
'<h2>\u60a8\u5df2\u5173\u95ed\u4e86\u6f02\u6d41\u74f6\u6d77\u6ee9</h2>',
'<div class="dialog_content dialog_content_text">\u5173\u95ed\u671f\u95f4\uff0c\u60a8\u4e0d\u4f1a\u6536\u5230\u964c\u751f\u4eba\u7684\u65b0\u74f6\u5b50\u3002<br />\u6f02\u6d41\u74f6\u5404\u529f\u80fd\u4e5f\u4f1a\u6682\u505c\u3002</div>',
'<div class="dialog_confirm"><a href="#" class="btn" ck="open">\u5f00\u901a\u6f02\u6d41\u74f6</a></div>',
'</div>',
'</span>',
'</div>'
]),

baH=al.T([
'<p>\u51fa\u9519\u5566\uff0c\u4e00\u9635\u9f99\u5377\u98ce\u628a\u7535\u7ebf\u5439\u8d70\u4e86\u3002</p>',
'</div>',
'<div class="dialog_confirm">',
'<a class="btn" href="#" ck="clk">\u91cd\u8bd5</a>',
'<a class="btn_minor" href="#" ck="exit">\u79bb\u5f00</a>'
]),

cpw=al.T([
'<p>\u60a8\u4e0a\u4f20\u7684\u5934\u50cf\u672a\u4fdd\u5b58\uff0c<br/>\u786e\u5b9a\u8981\u79bb\u5f00\u9875\u9762\u5417\uff1f</p>',
'</div>',
'<div class="dialog_confirm">',
'<a class="btn" href="#" name="y">\u79bb\u5f00</a>',
'<a class="btn_minor" href="#" name="n">\u53d6\u6d88</a>'
]),
aXZ=al.T([
'<a href="#" class="func_entrance" ck="shut">',
'<label>\u5173\u95ed\u6f02\u6d41\u74f6</label>',
'<p class="bottle_disable_tip graytext f_size">\u6d77\u6ee9\u5173\u95ed\u540e\uff0c\u60a8\u5c06\u4e0d\u4f1a\u6536\u5230\u65b0\u7684\u6f02\u6d41\u74f6\uff0c\u6f02\u6d41\u74f6\u7684\u5404\u529f\u80fd\u4e5f\u4f1a\u6682\u505c\u3002</p>',
'</a>'
]),

bi=al.TE([
'<div class="bottle_pannel bg1 bor1 $@$if(!$checked$)$@$disable_info$@$endif$@$">',
'<a ck="cls" href="#" class="icon ico_close_square"></a>',




ach,
'<div class="pannel_content">',

'<div class="readContentAll bor5">',
'<div class="settingContainer">',
'<h2>\u9632\u9a9a\u6270\u8bbe\u7f6e</h2>',

'<div class="moreSetting">',
'<div class=""><input type="radio" name="setreceive" class="checkbox" id="normal" $@$if($normal$==true)$@$checked="true"$@$endif$@$><label for="normal">\u7ee7\u7eed\u6f02\u6765\u65b0\u74f6\u5b50</label></div>',
'</div>',

'<div class="moreSetting">',
'<div class=""><input type="radio" class="checkbox" name="setreceive" result="$receive$" $@$if($receive$==true)$@$ checked="true" $@$endif$@$ id="receive"><label  for="receive">\u4e0d\u518d\u6f02\u6765\u65b0\u74f6\u5b50</label></div>',

'</div>',

'<div class=""><input type="radio"  name="setreceive" class="checkbox" result="$beach$" $@$if($beach$==true)$@$ checked="true" $@$endif$@$ id="beach"><label  for="beach">\u5173\u95ed\u6211\u7684\u6f02\u6d41\u74f6\u5e94\u7528</label></div>',

'</div>',
'</div>',
'<div class="operaPannel">',
'<a href="#" class="btn right" ck="shut">\u4fdd\u5b58</a>',

'</div>',
'</div>',

'</div>'
]),


aVx=al.TE([
'<div class="bottle_pannel bg1 bor1">',
'<a class="icon ico_close_square" href="#" ck="cls"></a>',
ach,
'<div class="pannel_content">',
'<div class="readContentAll bor5">',
'<div class="settingContainer">',
'<div class="iframecontainer"></div>',
'</div>',
'</div>',
'</div>',

'<div class="operaPannel">',
'<a class="right btn btn_disable" href="#" tmpck="savephoto" un="savephoto">\u4fdd\u5b58</a>',
'<div class="right f_size red" id="uploadingImgFail" style="display:none;">\u4fdd\u5b58\u5931\u8d25</div>',
'</div>',
'</div>'
]),
bab=al.TE([
'<div class="bottle_pannel bg1 bor1 bottle_Exchange">',
'<a class="icon ico_close_square" href="#" ck="cls"></a>',
'<div class="bottle_bar bottle_title receivebottleTitle"><div class="infoContent infotext"><h1>\u5151\u6362\u79ef\u5206</h1></div></div>',
'<div class="pannel_content">',
'<div class="readContentAll bor5">',
'<div class="settingContainer">',
'<div class="p">\u60a8\u73b0\u5728\u7684\u79ef\u5206\u662f<em class="point normal">$point$</em>\u5206\u3002</div>',
'<div class="p"><span class="left">\u5151\u6362\uff1a</span>',
'<div class="qm_select" ck="showpoint">',
'<div class="select_div bg1"><img align="absmiddle" src="/zh_CN/htmledition/images/webqqshow_on.gif"></div>',
'<div class="select_content" un="point" tabindex="0" hidefocus="true">$changetime$</div>',
'$@$if($items$.length>0)$@$',
'<div class="qmpanel_shadow qmpanel_shadow_female calformat" un="pointlist" isscroll="0" lastscroll="0" onscroll="this.setAttribute(\'isscroll\', parseInt(this.getAttribute(\'isscroll\')) + 1);"ck="chgpoint">',
'$@$for($items$)$@$',
'$@$sec items$@$',
'<p class="menu_item" mor="qmpanelover" mot="qmpanelout" ck="setpoint" value="$value$">$value$</p>',
'$@$endsec$@$',
'$@$endfor$@$',
'</div>',
'$@$endif$@$',
'</div>',
'<span>\u6b21</span>',
'</div>',
'<div class="p f_size graytext introlist">',
'<div><strong>\u5151\u6362\u8bf4\u660e\uff1a</strong></div>',
'<ul>',
'<li class="">\u672c\u6b21\u5151\u6362\u4ec5\u9650\u5f53\u5929\u6709\u6548\uff0c\u8fc7\u671f\u5c06\u6e05\u9664\u635e\u74f6\u673a\u4f1a\u3002<a target="_blank" href="http://service.mail.qq.com/cgi-bin/help?subtype=1&&no=1000745&&id=20014" class="underline">\u6d3b\u52a8\u8be6\u60c5</a></li>',
'<li class="">1\u5206\u5151\u63621\u6b21\u635e\u74f6\u673a\u4f1a\u3002</li>',
'<li class="">\u5151\u6362\u81f3\u5c11\u9700\u898110\u4e2a\u79ef\u5206\u3002</li>',
'</ul>',
'</div>',

'<div class="txt_center graytext f_size" >',
'<div un="loading" style="display:none;"><img align="absmiddle" src="/zh_CN/htmledition/images/ico_loading1.gif">&nbsp;\u6b63\u5728\u5151\u6362...</div>',

'</div>',
'</div>',
'</div>',
'</div>',
'<div class="operaPannel">',
'<a class="right btn $@$if(!$canchange$)$@$btn_disable$@$endif$@$" $@$if($canchange$)$@$ck="gochange"$@$endif$@$>\u5151\u6362</a>',

'<div class="red f_size right" un="rtydiv" style="display:none;">\u79ef\u5206\u5151\u6362\u5931\u8d25\u3002</div>',
'</div>',
'</div>'
]),

bat=al.TE([

'<div class="bottle_pannel bg1 bor1 $@$if($tab$==0)$@$info_pannel$@$endif$@$">',
'<a class="icon ico_close_square" href="#" ck="cls"></a>',
ach,
'<div class="pannel_content">',
'<div class="readContentAll bor5">',
'<div class="settingContainer">',
'<div class="iframecontainer"></div>',
'</div>',
'</div>',
'<div class="operaPannel">',
'$@$if($composeflag$==true)$@$',
'<a class="right btn $dis$" href="#" ck="saveinfo" tmpck="saveinfo" act="savetocompose">\u4fdd\u5b58</a>',
'<div class="right f_size red" id="uploadingImgFail" style="display:none;">\u4fdd\u5b58\u5931\u8d25</div>',

'$@$else$@$',
'<a class="right btn $dis$" href="#" ck="saveinfo" tmpck="saveinfo" act="save">\u4fdd\u5b58</a>',
'<div class="right f_size red" id="uploadingImgFail" style="display:none;">\u4fdd\u5b58\u5931\u8d25</div>',

'$@$endif$@$',
'</div>',

'</div>',
'</div>'
]),

aQX=al.TE([
'<div class="set_Pannel">',
'<div class=" bold set_title bor6">\u4e2a\u4eba\u5934\u50cf</div>',
'<div class="set_content">',
'<div class="s_check">',
'<label class="text">&nbsp;</label>',
'<div class="photoiframe bg_gray left" un="photoiframediv">',
'<div class="loading" un="photoiframeloading">',
'<img alt="\u6570\u636e\u52a0\u8f7d\u4e2d..." src="',aS,'ico_loading2.gif">',
'</div>',
'</div>',
'</div>',
'<div class="clr"></div>',
'</div>',

'<div class=" bold set_title bor6">\u57fa\u672c\u8d44\u6599</div>',
'<div class="set_content">',
'<div class="set_nickname">',
'<label class="text">\u6635\u79f0\uff1a</label>',
'<input type="text" class="text border" kp="enter" maxlength="10" id="plpnickname" ku="count" value="" />',
'<div class="f_size graytext intro">\u6700\u591a10\u4e2a\u5b57\u7b26\u3002\u74f6\u4e2d\u5c06\u4f1a\u663e\u793a\u60a8\u7684\u6635\u79f0\u3002</div>',
'</div>',

'<div class="set_sex">',
'<label  class="text">\u8eab\u4efd\uff1a</label>',
'<div ck="showinfo" bind="my_qmpanel_shadow_female" class="qm_select">',
'<div id="sex_select_div" class="select_div bg1" tabindex="0" hidefocus="true">',
'<img align="absmiddle" src="',aS,'webqqshow_on.gif">',
'</div>',
'<div tabindex="1" name="15" next="my_qmpanel_shadow_female" hidefocus="true" class="select_content">\u5c0f\u841d\u8389</div>',
'<div ck="chgage" id="my_qmpanel_shadow_female" class="qmpanel_shadow my_qmpanel_shadow_female">',
'<div class="male"><p class="menu_item graytext" style="cursor:default;">\u7537</p><p name="1,15" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="0">\u5c0f\u6b63\u592a</p><p name="16,30" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="0">\u9b45\u529b\u5c11\u5e74</p><p name="31,45" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="0">\u6210\u719f\u7537\u751f</p></div>',
'<div class="female"><p class="menu_item graytext" style="cursor:default;">\u5973</p><p name="1,15" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="1">\u5c0f\u841d\u8389</p><p name="16,30" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="1">\u82b1\u6837\u5c11\u5973</p><p name="31,45" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv" sex="1">\u77e5\u6027\u719f\u5973</p></div></div>',
'</div>',
'</div>',

'<div class="set_area">',
'<label class="text">\u5730\u533a\uff1a</label>',
'<div class="qm_select set_country" bindx="country_qmpanel_shadow" ck="showinfo">',
'<div id="country_select_div" class="select_div bg1" tabindex="0" hidefocus="true">',
'<img align="absmiddle" src="',aS,'webqqshow_on.gif">',
'</div>',
'<div tabindex="2" name="\u4e2d\u56fd" next="country_qmpanel_shadow" hidefocus="true" class="select_content">\u4e2d\u56fd</div>',
'<div ck="chgcountry" id="country_qmpanel_shadow" class="qmpanel_shadow country_qmpanel_shadow" style="display: none;"><p name="\u4e2d\u56fd" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u4e2d\u56fd</p><p name="\u5176\u4ed6\u5730\u533a" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5176\u4ed6\u5730\u533a</p></div>',
'</div>',
'<div class="qm_select set_province" bindx="province_qmpanel_shadow" ck="showinfo">',
'<div id="province_select_div" class="select_div bg1" tabindex="0" hidefocus="true">',
'<img align="absmiddle" src="',aS,'webqqshow_on.gif">',
'</div>',
'<div tabindex="2" name="" province="true" next="province_qmpanel_shadow" hidefocus="true" class="select_content">\u8bf7\u9009\u62e9</div>',
'<div onscroll="this.setAttribute(\'isscroll\', parseInt(this.getAttribute(\'isscroll\'))+1);" isscroll="0" lastscroll="0" ck="chgprovince" id="province_qmpanel_shadow" class="qmpanel_shadow province_qmpanel_shadow" style="display: none;"><p name="\u5317\u4eac" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5317\u4eac</p><p name="\u5929\u6d25" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5929\u6d25</p><p name="\u6cb3\u5317" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6cb3\u5317</p><p name="\u5c71\u897f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5c71\u897f</p><p name="\u5185\u8499\u53e4" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5185\u8499\u53e4</p><p name="\u6c5f\u82cf" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6c5f\u82cf</p><p name="\u5b89\u5fbd" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5b89\u5fbd</p><p name="\u5c71\u4e1c" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5c71\u4e1c</p><p name="\u8fbd\u5b81" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u8fbd\u5b81</p><p name="\u5409\u6797" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5409\u6797</p><p name="\u9ed1\u9f99\u6c5f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u9ed1\u9f99\u6c5f</p><p name="\u4e0a\u6d77" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u4e0a\u6d77</p><p name="\u6d59\u6c5f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6d59\u6c5f</p><p name="\u6c5f\u897f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6c5f\u897f</p><p name="\u798f\u5efa" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u798f\u5efa</p><p name="\u6e56\u5317" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6e56\u5317</p><p name="\u6e56\u5357" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6e56\u5357</p><p name="\u6cb3\u5357" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6cb3\u5357</p><p name="\u5e7f\u4e1c" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5e7f\u4e1c</p><p name="\u5e7f\u897f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5e7f\u897f</p><p name="\u6d77\u5357" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6d77\u5357</p><p name="\u91cd\u5e86" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u91cd\u5e86</p><p name="\u56db\u5ddd" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u56db\u5ddd</p><p name="\u8d35\u5dde" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u8d35\u5dde</p><p name="\u4e91\u5357" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u4e91\u5357</p><p name="\u897f\u85cf" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u897f\u85cf</p><p name="\u9655\u897f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u9655\u897f</p><p name="\u7518\u8083" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u7518\u8083</p><p name="\u5b81\u590f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5b81\u590f</p><p name="\u9752\u6d77" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u9752\u6d77</p><p name="\u65b0\u7586" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u65b0\u7586</p><p name="\u9999\u6e2f" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u9999\u6e2f</p><p name="\u6fb3\u95e8" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u6fb3\u95e8</p><p name="\u53f0\u6e7e" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u53f0\u6e7e</p></div>',
'<div ck="chgprovince" id="province_qmpanel_shadow_other" class="qmpanel_shadow province_qmpanel_shadow_other" style="display: none;"><p name="\u5176\u4ed6\u5730\u533a" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">\u5176\u4ed6\u5730\u533a</p></div>',
'</div>',
'<div bindx="city_qmpanel_shadow" ck="showinfo" class="qm_select set_city" style="margin-right:0" display="">',
'<div id="city_select_div" class="select_div bg1" tabindex="0" hidefocus="true">',
'<img align="absmiddle" src="',aS,'webqqshow_on.gif">',
'</div>',
'<div tabindex="2" name="" next="city_qmpanel_shadow" hidefocus="true" class="select_content">\u8bf7\u9009\u62e9</div>',
'<div ck="chgcity" onscroll="this.setAttribute(\'isscroll\', parseInt(this.getAttribute(\'isscroll\'))+1);" isscroll="0" lastscroll="0" id="city_qmpanel_shadow" class="qmpanel_shadow city_qmpanel_shadow" style="display: none;"></div>',
'</div>',
'<div class="clr"></div>',
'</div>',
'</div>',

'<div class=" bold set_title bor6">\u5176\u4ed6\u8bbe\u7f6e</div>',
'<div class="set_content">',





'<div class="s_check">',
'<label class="text">\u706f\u5854\uff1a</label>',
'<div><input type="checkbox" id="onlinechk" $@$if($lonely$)$@$checked="true"$@$endif$@$ class="checkbox" /><label for="onlinechk">\u70b9\u4eae\u706f\u5854</label></div>',
'<div class="f_size graytext intro">\u70b9\u4eae\u706f\u5854\u4e4b\u540e\u60a8\u635e\u5230\u74f6\u5b50\u7684\u673a\u4f1a\u5c06\u5927\u5927\u589e\u52a0</div>',
'</div>',
'<div class="s_text">',
'<label class="text">\u79ef\u5206\uff1a</label>',
'<div>\u60a8\u7684\u79ef\u5206\u662f <em class="point bold">$point$</em> \u5206\u3002 <a style="display:none;" class="f_size underline" target="_blank" href="http://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;no=1000680&amp;&amp;id=20014" class="underline">\u79ef\u5206\u8bf4\u660e</a><a class="underline" ck="showchgpoint">\u5151\u6362\u79ef\u5206</a></div></div>',
'</div>',
'</div>',

'</div>'

]),

aZW=al.T([
'<p>\u786e\u8ba4\u62d2\u6536\u6f02\u6d41\u74f6\uff1f</p>',
'</div>',
'<div class="dialog_confirm" >',
'<a class="btn" href="#" ck="clk" act="y">\u662f</a>',
'<a class="btn_minor" href="#" ck="clk" act="n" style="margin-right:0">\u5426</a>',
'</p>'
]),

bHx=al.TE([
'<a class="ico_close_circle_blue" href="#" ck="cls"></a>',
'<p>\u62b1\u6b49\uff0c\u60a8\u4eca\u5929\u7684\u74f6\u5b50\u7528\u5b8c\u4e86\u3002</p>',
'</div>',
'<div class="dialog_confirm">',
'$@$if(!$plpfrom$||$plpfrom$=="webmail")$@$',
'<a ck="clk" href="/cgi-bin/readtemplate?t=compose_postcard&tmpId=daodao_$@$if($number$==9)$@$09$@$else if($number$==10)$@$10$@$endif$@$&loc=bottle,postcard,,$number$&sid=',bk,'" class="btn">\u53d1\u6f02\u6d41\u74f6\u660e\u4fe1\u7247</a>',
'$@$endif$@$'
]),

aTA=al.T(["\u60a8\u5df2\u6210\u529f\u7ecf\u5173\u95ed\u6c99\u6ee9\uff0c\u5c06\u4e0d\u518d\u6536\u5230\u65b0\u7684\u6f02\u6d41\u74f6"]),

aPM=al.T(["\u60a8\u5df2\u91cd\u65b0\u5f00\u901a\u6f02\u6d41\u74f6\uff01"]),

aOQ=al.T(["\u60a8\u5df2\u5f00\u542f\u9632\u9a9a\u6270\uff0c\u4f46\u4ecd\u80fd\u6536\u5230\u5df2\u6709\u74f6\u5b50\u7684\u56de\u590d"]),

aZx=al.T(["\u60a8\u5df2\u53d6\u6d88\u53cd\u9a9a\u6270\u8bbe\u7f6e\uff0c\u53ef\u6b63\u5e38\u6536\u5230\u65b0\u74f6\u5b50"]),

aOB=al.T([
'<div class="bottle_pannel bg1 bor1 bottle_Exchange">',
'<a class="icon ico_close_square" href="#" ck="cls"></a>',
'<div class="bottle_bar bottle_title receivebottleTitle"><div class="infoContent infotext"><h1>\u5151\u6362\u79ef\u5206</h1></div></div>',
'<div class="pannel_content">',
'<div class="readContentAll bor5">',
'<div class="settingContainer">',
'<div class="p">\u60a8\u76ee\u524d\u7684\u79ef\u5206\u4f4e\u4e8e<em class="point normal">10</em>\u5206\u3002</div>',
'<div class="p">\u8bf7\u6512\u591f10\u4e2a\u79ef\u5206\u518d\u6765\u5151\u6362\u635e\u74f6\u673a\u4f1a\u54e6\u3002</div>',
'<div class="p f_size graytext introlist">',
'<div><strong>\u79ef\u5206\u8bf4\u660e\uff1a</strong></div>',
'<ul>',
'<li class="">\u6254\u51fa\u4e00\u4e2a\u74f6\u5b50\u52a01\u5206\u3002</li>',
'<li class="">\u67d0\u4e2a\u74f6\u5b50\u82e5\u6536\u5230\u56de\u590d\uff0c\u52a03\u5206\u3002\u540c\u4e00\u4e2a\u74f6\u5b50\u88ab\u591a\u6b21\u56de\u590d\uff0c\u53ea\u52a03\u5206\u3002</li>',
'<li class="">\u82e5\u88ab\u522b\u4eba\u52a0\u4e3a\u597d\u53cb\uff0c\u52a03\u5206\u3002\u88ab\u540c\u4e00\u4e2a\u4eba\u591a\u6b21\u52a0\u4e3a\u597d\u53cb\uff0c\u53ea\u52a03\u5206\u3002</li>',
'<li class="">\u6bcf\u65e5\u83b7\u5f97\u7684\u79ef\u5206\u4e0a\u9650\u4e3a20\u5206\u3002<a target="_blank" href="http://service.mail.qq.com/cgi-bin/help?subtype=1&amp;&amp;no=1000680&amp;&amp;id=20014" class="underline">\u66f4\u591a\u8be6\u60c5</a></li>',
'</ul>',
'</div>',
'</div>',
'</div>',
'</div>',
'</div>'
]),

baN=al.T([
'<div class="bottle_tips bottle_open">',
'<span class="tips d_tip">',
'<div class="dialog_box infotext">',
'<div class="dialog_content dialog_content_text">\u54ce\u54df\uff0c\u6d77\u4e0a\u522e\u5927\u98ce\uff0c\u6d77\u6ee9\u6682\u65f6<br/>\u5173\u95ed\uff0c\u8bf7\u7a0d\u540e\u518d\u6765\u901b\u5427\u3002</div>',
'</div>',
'</span>',
'</div>'
]),

cgj=al.TE([
'<div class="bottle_box bottle_list pageSkin0">',
'<div class="myPage labeltext bor1 myselfPage loadPannel">',
'<a class="ico_close_circle" href="#" onclick="QMWin.Q(\'#ctrlloading\').hide();QMWin.Q(\'div#bottle_paperlist\').rmClass(\'opacity1\');"></a>',
'$@$if($status$=="loading")$@$',
'<p class="b_size loading">\u52a0\u8f7d\u4e2d<span class="wait"></span></p>',
'$@$else if($status$=="error")$@$',
'<div class="read_err">',
'<div class="read_err_inner">',
'<span class="fail2"></span><div class="b_size err_text">\u74f6\u585e\u6709\u70b9\u7d27\uff0c\u62d4\u4e0d\u51fa\u6765\u3002<br />\u8bf7\u60a8\u6e05\u7a7a\u6d4f\u89c8\u5668\u7f13\u5b58\u540e\u518d\u8bd5\u3002</div>',
'</div>',
'</div>',
'$@$endif$@$',
'</div>',
'</div>'
]),

cxf=al.TE([
'<div class="bottle_box bottle_paper bottle_mail" style="top:67px;">',
'<div class="bottle_pannel bg1 bor1 loadPannel">',
'<a class="ico_close_circle" href="#" onclick="QMWin.Q(\'#ctrlloading\').hide();QMWin.Q(\'div#bottle_paperlist\').rmClass(\'opacity1\');"></a>',
'$@$if($status$=="loading")$@$',
'<div class="b_size txt_center loading">\u74f6\u5b50\u6b63\u5728\u6253\u5f00\u4e2d<span class="wait"></span></div>',
'$@$else if($status$=="error")$@$',
'<div class="read_err">',
'<div class="read_err_inner">',
'<span class="fail2"></span><div class="b_size err_text">\u74f6\u585e\u6709\u70b9\u7d27\uff0c\u62d4\u4e0d\u51fa\u6765\u3002<br />\u8bf7\u60a8\u6e05\u7a7a\u6d4f\u89c8\u5668\u7f13\u5b58\u540e\u518d\u8bd5\u3002</div>',
'</div>',
'</div>',
'$@$endif$@$',
'</div>',
'</div>'
]),

chQ=al.TE([
'<div class="bottle_box bottle_interactive">',
'<div class="bottle_pannel bg1 bor1 loadPannel">',
'<a class="icon ico_close_square" href="#" onclick="QMWin.Q(\'#ctrlloading\').hide();QMWin.Q(\'div#bottle_paperlist\').rmClass(\'opacity1\');"></a>',
'$@$if($status$=="loading")$@$',
'<div class="b_size txt_center loading">\u74f6\u5b50\u6b63\u5728\u6253\u5f00\u4e2d<span class="wait"></span></div>',
'$@$else if($status$=="error")$@$',
'<div class="read_err">',
'<div class="read_err_inner">',
'<span class="fail2"></span><div class="b_size err_text">\u74f6\u585e\u6709\u70b9\u7d27\uff0c\u62d4\u4e0d\u51fa\u6765\u3002<br />\u8bf7\u60a8\u6e05\u7a7a\u6d4f\u89c8\u5668\u7f13\u5b58\u540e\u518d\u8bd5\u3002</div>',
'</div>',
'</div>',
'$@$endif$@$',
'</div>',
'</div>'
]),

cqW=al.TE([
'<div class="bottle_box bottle_paper bottle_send" style="top:67px;">',
'<div class="bottle_pannel bg1 bor1 loadPannel">',
'<a class="ico_close_circle" href="#" onclick="QMWin.Q(\'#ctrlloading\').hide();QMWin.Q(\'div#bottle_paperlist\').rmClass(\'opacity1\');"></a>',
'$@$if($status$=="loading")$@$',
'<p class="b_size loading">\u52a0\u8f7d\u4e2d<span class="wait"></span></p>',
'$@$else if($status$=="error")$@$',
'<div class="read_err">',
'<div class="read_err_inner">',
'<span class="fail2"></span><div class="b_size err_text">\u74f6\u585e\u6709\u70b9\u7d27\uff0c\u62d4\u4e0d\u51fa\u6765\u3002<br />\u8bf7\u60a8\u6e05\u7a7a\u6d4f\u89c8\u5668\u7f13\u5b58\u540e\u518d\u8bd5\u3002</div>',
'</div>',
'</div>',
'$@$endif$@$',
'</div>',
'</div>'
]),

cfE=al.TE([
'<div class="bottle_box bottle_list">',
'<div class="bottle_pannel bg1 bor1 loadPannel">',
'<a class="icon ico_close_square" href="#" onclick="QMWin.Q(\'#ctrlloading\').hide();QMWin.Q(\'div#bottle_paperlist\').rmClass(\'opacity1\');"></a>',
'$@$if($status$=="loading")$@$',
'<p class="b_size loading">\u52a0\u8f7d\u4e2d<span class="wait"></span></p>',
'$@$else if($status$=="error")$@$',
'<div class="read_err">',
'<div class="read_err_inner">',
'<span class="fail2"></span><div class="b_size err_text">\u74f6\u585e\u6709\u70b9\u7d27\uff0c\u62d4\u4e0d\u51fa\u6765\u3002<br />\u8bf7\u60a8\u6e05\u7a7a\u6d4f\u89c8\u5668\u7f13\u5b58\u540e\u518d\u8bd5\u3002</div>',
'</div>',
'</div>',
'$@$endif$@$',
'</div>',
'</div>'
]),

cup=al.T([

]),

fl=
{
paperList:CS,
familiar:brp,
allFavourList:bza,
favourList:EH,
toolbar:To,
tip:cb,
othertip:cJD,
oldtip:bEI,
weaktip:bGd,
memo:bDb,
memotip:awA,
fritip:bJh,
opentip:bCL,
singletip:ckx,
presingletip:cmj,
mailchange:bOa,
newmail:pZ,
setLocate:bTk,
magicTable:bkT,
open:aSe,
openErrorTip:baN,
openerr:baH,
setting:bi,
settingIcon:aVx,
setnamecontainer:bat,
setname:aQX,
shuttip:aZW,
newShut:aXZ,
nobottle:bHx,
closeBeach:aTA,
openBeach:aPM,
closeReceive:aOQ,
openReceive:aZx,
changePoint:bab,
cannotChgPoint:aOB,
fetchname:aeR,
savephotosetting:cpw,
gardenloading:cgj,
mailloading:cxf,
interactivemailloading:chQ,
composeloading:cqW,
tablelistloading:cfE,
"":null
};

return(
{
get:function(aM)
{
var bcq;

if(!fl[aM])
{
if(SD.length===0)
{
for(var i=0,l=aEg.length;i<l;i++)
{
SD.push(al.lib(aEg[i]));
}
}

for(var i=SD.length-1;i>=0;i--)
{
if(!SD[i])
{
SD[i]=al.lib(aEg[i]);
}
if(SD[i]&&(bcq=SD[i].get(aM)))
{
return bcq;
}
}

return cup;
}
else
{
return fl[aM];
}
}
}
);
}
);
}
);


$.package(

"bottle/lib/util.js",


[],


function(ay)
{

var $=ay,
al=QMWin,
bce=300000,
dw="PLP.Tip",
bN="PLP.DCGeneral",
UR={
'/cgi-bin/bottle_list':'ModelList',
'/cgi-bin/bottle_msg':'ModelList'
},
kB=QMWin.Q('#ctrlloading'),
xJ=window.gSourceList,
aJ=al.lib('PLP.Template'),
iB={},
rO={},
aCG=['/cgi-bin/bottle_list','/cgi-bin/bottle_read'],






aCG=['/cgi-bin/bottle_list','/cgi-bin/bottle_msg'],
aXq={
'\u666e\u901a\u74f6':0,
'\u540c\u57ce\u74f6':1,
'\u7167\u7247\u74f6':2,
'\u6697\u53f7\u74f6':3,
'\u63d0\u95ee\u74f6':4,
'\u795d\u613f\u74f6':5,
'\u53d1\u6cc4\u74f6':6,
'\u771f\u8bdd\u74f6':7,
'\u4ea4\u5f80\u74f6':8,
'\u4f20\u9012\u74f6':9,
'\u8054\u7cfb\u74f6':10,
'\u8868\u767d\u74f6':11,
'\u751f\u65e5\u74f6':12,
'\u5f00\u5fc3\u74f6':13,
'\u70e6\u5fc3\u74f6':14,
'\u5fc3\u4e8b\u74f6':15,
'\u5b9a\u5411\u74f6':'16,17',
'\u5fc3\u60c5\u74f6':'13,14,15'
};


window.AjaxCache=iB;
window.MergeAjaxCache=rO;





window.scriptTiming=function(yW)
{
var _oDom=document.getElementById(yW),
bhn=parseInt(_oDom.getAttribute('starttime'),10);

return(new Date()-bhn);
}




QMWin.createLib(

"PLP.Util",


{bStatic:true},


function(av)
{


return(
{





plpfrom:function()
{

return this.request('plpfrom')||'webmail';
},






isdLog:function(aw)
{
if(window.gishttps===true)
{
return false;
}
var ft=new Image(1,1);

var bnV=window.location.protocol+"//isdspeed.qq.com/cgi-bin/r.cgi?flag1=6000&flag2=100&flag3="+((aw['speedid'])?aw['speedid']:window.gspeedid4)+"&_="+(+new Date())+"&";

var bo=[];
for(var obj in aw)
{
if(obj=='speedid')
{
continue;
}
bo.push(obj+"="+aw[obj]);
}

setTimeout(function(){
ft.onload=function(){
ft.onload=function(){};
ft.onerror=function(){};
ft=null;
};
ft.onerror=function(){
ft.onload=function(){};
ft.onerror=function(){};
ft=null;
};
ft.src=bnV+bo.join('&');
},0);
},

checkSearchType:function(cg)
{
if(cg.length<2||cg.length>3)
{
return false;
}

if(cg.length==2)
{
cg+='\u74f6';
}

if(typeof aXq[cg]!=='undefined')
{
return aXq[cg];
}

return false;
},






getprovinceinfo:function()
{
return Gy;
},

array_del:function(lT,n)
{



if(n<0)
{
return lT;
}
else
{
return lT.slice(0,n).concat(lT.slice(n+1,lT.length));
}






},






arrayPushWithCheck:function(xj,gr)
{
var ad=this,
_nLen=xj.length,
bts=false;
if(ad.inarray(gr,xj)>-1)
{
bts=true;
return xj;
}
if(!bts)
{
xj.push(gr);
return xj;
}
},






arrayDelWithContent:function(xj,gr)
{
var _nLen=xj.length,
fu=-1;
for(var i=0;i<xj.length;i++)
{
if(xj[i]===gr)
{
fu=i;
}
}
return this.array_del(xj,fu);
},






getMonth:function(ar)
{
if(ar==1)
{
return["\u6b63","\u4e8c","\u4e09","\u56db","\u4e94","\u516d","\u4e03","\u516b","\u4e5d","\u5341","\u5341\u4e00","\u814a"];
}
else
{
return["1","2","3","4","5","6","7","8","9","10","11","12"];
}
},

doPaperListOpacity:function(bpe)
{
QMWin.$("div#bottle_paperlist")[bpe?'addClass':'rmClass']('opacity1');
},







getDay:function(ar,bJy)
{
if(ar==1)
{
return["\u521d\u4e00","\u521d\u4e8c","\u521d\u4e09","\u521d\u56db","\u521d\u4e94","\u521d\u516d","\u521d\u4e03","\u521d\u516b","\u521d\u4e5d","\u521d\u5341","\u5341\u4e00","\u5341\u4e8c","\u5341\u4e09","\u5341\u56db","\u5341\u4e94","\u5341\u516d","\u5341\u4e03","\u5341\u516b","\u5341\u4e5d","\u4e8c\u5341","\u5eff\u4e00","\u5eff\u4e8c","\u5eff\u4e09","\u5eff\u56db","\u5eff\u4e94","\u5eff\u516d","\u5eff\u4e03","\u5eff\u516b","\u5eff\u4e5d","\u4e09\u5341"];
}
else
{
var ZT=+bJy;
switch(ZT)
{
case 2:
return["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29"];
break;
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
return["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31"];
break;
case 4:
case 6:
case 9:
case 11:
return["1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30"];
break;
}
}
},






hashage:function(gV,iD)
{
var awF={
"\u7537@16":"\u5c0f\u6b63\u592a",
"\u7537@23":"\u9b45\u529b\u5c11\u5e74",
"\u7537@30":"\u6210\u719f\u7537\u751f",
"\u5973@16":"\u5c0f\u841d\u8389",
"\u5973@23":"\u82b1\u6837\u5c11\u5973",
"\u5973@30":"\u77e5\u6027\u719f\u5973"
};

if(iD<16)
{
iD=16;
}
else if(iD>15&&iD<31)
{
iD=23;
}
else if(iD>30)
{
iD=30;
}

if(!awF[gV+'@'+iD])
{
for(var obj in awF)
{
if(iD==awF[obj])
{
return iD;
}
}
return'';
}
else
{
return awF[gV+'@'+iD];
}
},






hashcity:function(eq,cH)
{
var i,j,k='',
bo=this.getprovinceinfo();
for(var i in bo)
{
for(var j in bo[i])
{
for(var k in bo[i][j])
{
if(bo[i][j][k]['id']==eq)
{
if(cH===true&&bo[i][j][k]['name']=='\u4e0d\u9650')
{
return{'country':i,'province':j,'city':j};
}
else
{
return{'country':i,'province':j,'city':bo[i][j][k]['name']};
}
}
}
}
}



return this.hashcity("1280000");

},






hashsex:function(gV)
{
var bUT={
"1":"\u7537",
"2":"\u5973"
};

return bUT[gV]||gV;
},






hashface:function(abF)
{
var aS=al.path("img");

var bbw={'/\u5fae\u7b11':'<img src="'+aS+'mo2/0.gif" align="absmiddle" />','/\u6487\u5634':'<img src="'+aS+'mo2/1.gif" align="absmiddle" />','/\u8272':'<img src="'+aS+'mo2/2.gif" align="absmiddle" />','/\u53d1\u5446':'<img src="'+aS+'mo2/3.gif" align="absmiddle" />','/\u5f97\u610f':'<img src="'+aS+'mo2/4.gif" align="absmiddle" />','/\u6d41\u6cea':'<img src="'+aS+'mo2/5.gif" align="absmiddle" />','/\u5bb3\u7f9e':'<img src="'+aS+'mo2/6.gif" align="absmiddle" />','/\u95ed\u5634':'<img src="'+aS+'mo2/7.gif" align="absmiddle" />','/\u7761':'<img src="'+aS+'mo2/8.gif" align="absmiddle" />','/\u5927\u54ed':'<img src="'+aS+'mo2/9.gif" align="absmiddle" />','/\u5c34\u5c2c':'<img src="'+aS+'mo2/10.gif" align="absmiddle" />','/\u53d1\u6012':'<img src="'+aS+'mo2/11.gif" align="absmiddle" />','/\u8c03\u76ae':'<img src="'+aS+'mo2/12.gif" align="absmiddle" />','/\u5472\u7259':'<img src="'+aS+'mo2/13.gif" align="absmiddle" />','/\u60ca\u8bb6':'<img src="'+aS+'mo2/14.gif" align="absmiddle" />','/\u96be\u8fc7':'<img src="'+aS+'mo2/15.gif" align="absmiddle" />','/\u9177':'<img src="'+aS+'mo2/16.gif" align="absmiddle" />','/\u51b7\u6c57':'<img src="'+aS+'mo2/17.gif" align="absmiddle" />','/\u6293\u72c2':'<img src="'+aS+'mo2/18.gif" align="absmiddle" />','/\u5410':'<img src="'+aS+'mo2/19.gif" align="absmiddle" />','/\u5077\u7b11':'<img src="'+aS+'mo2/20.gif" align="absmiddle" />','/\u53ef\u7231':'<img src="'+aS+'mo2/21.gif" align="absmiddle" />','/\u767d\u773c':'<img src="'+aS+'mo2/22.gif" align="absmiddle" />','/\u50b2\u6162':'<img src="'+aS+'mo2/23.gif" align="absmiddle" />','/\u9965\u997f':'<img src="'+aS+'mo2/24.gif" align="absmiddle" />','/\u56f0':'<img src="'+aS+'mo2/25.gif" align="absmiddle" />','/\u60ca\u6050':'<img src="'+aS+'mo2/26.gif" align="absmiddle" />','/\u6d41\u6c57':'<img src="'+aS+'mo2/27.gif" align="absmiddle" />','/\u61a8\u7b11':'<img src="'+aS+'mo2/28.gif" align="absmiddle" />','/\u5927\u5175':'<img src="'+aS+'mo2/29.gif" align="absmiddle" />','/\u594b\u6597':'<img src="'+aS+'mo2/30.gif" align="absmiddle" />','/\u5492\u9a82':'<img src="'+aS+'mo2/31.gif" align="absmiddle" />','/\u7591\u95ee':'<img src="'+aS+'mo2/32.gif" align="absmiddle" />','/\u5618':'<img src="'+aS+'mo2/33.gif" align="absmiddle" />','/\u6655':'<img src="'+aS+'mo2/34.gif" align="absmiddle" />','/\u6298\u78e8':'<img src="'+aS+'mo2/35.gif" align="absmiddle" />','/\u8870':'<img src="'+aS+'mo2/36.gif" align="absmiddle" />','/\u9ab7\u9ac5':'<img src="'+aS+'mo2/37.gif" align="absmiddle" />','/\u6572\u6253':'<img src="'+aS+'mo2/38.gif" align="absmiddle" />','/\u518d\u89c1':'<img src="'+aS+'mo2/39.gif" align="absmiddle" />','/\u64e6\u6c57':'<img src="'+aS+'mo2/40.gif" align="absmiddle" />','/\u62a0\u9f3b':'<img src="'+aS+'mo2/41.gif" align="absmiddle" />','/\u9f13\u638c':'<img src="'+aS+'mo2/42.gif" align="absmiddle" />','/\u7cd7\u5927\u4e86':'<img src="'+aS+'mo2/43.gif" align="absmiddle" />','/\u574f\u7b11':'<img src="'+aS+'mo2/44.gif" align="absmiddle" />','/\u5de6\u54fc\u54fc':'<img src="'+aS+'mo2/45.gif" align="absmiddle" />','/\u53f3\u54fc\u54fc':'<img src="'+aS+'mo2/46.gif" align="absmiddle" />','/\u54c8\u6b20':'<img src="'+aS+'mo2/47.gif" align="absmiddle" />','/\u9119\u89c6':'<img src="'+aS+'mo2/48.gif" align="absmiddle" />','/\u59d4\u5c48':'<img src="'+aS+'mo2/49.gif" align="absmiddle" />','/\u5feb\u54ed\u4e86':'<img src="'+aS+'mo2/50.gif" align="absmiddle" />','/\u9634\u9669':'<img src="'+aS+'mo2/51.gif" align="absmiddle" />','/\u4eb2\u4eb2':'<img src="'+aS+'mo2/52.gif" align="absmiddle" />','/\u5413':'<img src="'+aS+'mo2/53.gif" align="absmiddle" />','/\u53ef\u601c':'<img src="'+aS+'mo2/54.gif" align="absmiddle" />','/\u83dc\u5200':'<img src="'+aS+'mo2/55.gif" align="absmiddle" />','/\u897f\u74dc':'<img src="'+aS+'mo2/56.gif" align="absmiddle" />','/\u5564\u9152':'<img src="'+aS+'mo2/57.gif" align="absmiddle" />','/\u7bee\u7403':'<img src="'+aS+'mo2/58.gif" align="absmiddle" />','/\u4e52\u4e53':'<img src="'+aS+'mo2/59.gif" align="absmiddle" />','/\u5496\u5561':'<img src="'+aS+'mo2/60.gif" align="absmiddle" />','/\u996d':'<img src="'+aS+'mo2/61.gif" align="absmiddle" />','/\u732a\u5934':'<img src="'+aS+'mo2/62.gif" align="absmiddle" />','/\u73ab\u7470':'<img src="'+aS+'mo2/63.gif" align="absmiddle" />','/\u51cb\u8c22':'<img src="'+aS+'mo2/64.gif" align="absmiddle" />','/\u793a\u7231':'<img src="'+aS+'mo2/65.gif" align="absmiddle" />','/\u7231\u5fc3':'<img src="'+aS+'mo2/66.gif" align="absmiddle" />','/\u5fc3\u788e':'<img src="'+aS+'mo2/67.gif" align="absmiddle" />','/\u86cb\u7cd5':'<img src="'+aS+'mo2/68.gif" align="absmiddle" />','/\u95ea\u7535':'<img src="'+aS+'mo2/69.gif" align="absmiddle" />','/\u70b8\u5f39':'<img src="'+aS+'mo2/70.gif" align="absmiddle" />','/\u5200':'<img src="'+aS+'mo2/71.gif" align="absmiddle" />','/\u8db3\u7403':'<img src="'+aS+'mo2/72.gif" align="absmiddle" />','/\u74e2\u866b':'<img src="'+aS+'mo2/73.gif" align="absmiddle" />','/\u4fbf\u4fbf':'<img src="'+aS+'mo2/74.gif" align="absmiddle" />','/\u6708\u4eae':'<img src="'+aS+'mo2/75.gif" align="absmiddle" />','/\u592a\u9633':'<img src="'+aS+'mo2/76.gif" align="absmiddle" />','/\u793c\u7269':'<img src="'+aS+'mo2/77.gif" align="absmiddle" />','/\u62e5\u62b1':'<img src="'+aS+'mo2/78.gif" align="absmiddle" />','/\u5f3a':'<img src="'+aS+'mo2/79.gif" align="absmiddle" />','/\u5f31':'<img src="'+aS+'mo2/80.gif" align="absmiddle" />','/\u63e1\u624b':'<img src="'+aS+'mo2/81.gif" align="absmiddle" />','/\u80dc\u5229':'<img src="'+aS+'mo2/82.gif" align="absmiddle" />','/\u62b1\u62f3':'<img src="'+aS+'mo2/83.gif" align="absmiddle" />','/\u52fe\u5f15':'<img src="'+aS+'mo2/84.gif" align="absmiddle" />','/\u62f3\u5934':'<img src="'+aS+'mo2/85.gif" align="absmiddle" />','/\u5dee\u52b2':'<img src="'+aS+'mo2/86.gif" align="absmiddle" />','/\u7231\u4f60':'<img src="'+aS+'mo2/87.gif" align="absmiddle" />','/NO':'<img src="'+aS+'mo2/88.gif" align="absmiddle" />','/OK':'<img src="'+aS+'mo2/89.gif" align="absmiddle" />','/\u7231\u60c5':'<img src="'+aS+'mo2/90.gif" align="absmiddle" />','/\u98de\u543b':'<img src="'+aS+'mo2/91.gif" align="absmiddle" />','/\u8df3\u8df3':'<img src="'+aS+'mo2/92.gif" align="absmiddle" />','/\u53d1\u6296':'<img src="'+aS+'mo2/93.gif" align="absmiddle" />','/\u6004\u706b':'<img src="'+aS+'mo2/94.gif" align="absmiddle" />','/\u8f6c\u5708':'<img src="'+aS+'mo2/95.gif" align="absmiddle" />','/\u78d5\u5934':'<img src="'+aS+'mo2/96.gif" align="absmiddle" />','/\u56de\u5934':'<img src="'+aS+'mo2/97.gif" align="absmiddle" />','/\u8df3\u7ef3':'<img src="'+aS+'mo2/98.gif" align="absmiddle" />','/\u6325\u624b':'<img src="'+aS+'mo2/99.gif" align="absmiddle" />','/\u6fc0\u52a8':'<img src="'+aS+'mo2/100.gif" align="absmiddle" />','/\u8857\u821e':'<img src="'+aS+'mo2/101.gif" align="absmiddle" />','/\u732e\u543b':'<img src="'+aS+'mo2/102.gif" align="absmiddle" />','/\u5de6\u592a\u6781':'<img src="'+aS+'mo2/103.gif" align="absmiddle" />','/\u53f3\u592a\u6781':'<img src="'+aS+'mo2/104.gif" align="absmiddle" />','/\u543b':'<img src="'+aS+'mo2/116.gif" align="absmiddle" />'};

if(abF&&abF.replace)
{
for(var obj in bbw)
{
var di=new RegExp(obj,'g');
abF=abF.replace(di,bbw[obj]);
}
}

return abF;
},






request:function(aF)
{
var jr=al.loc('search');
KS=new RegExp("[?|&]"+aF+"=([^&|#]*)[&|#|.]*","i");
bcu=jr.match(KS);

if(!bcu)
{
return"";
}
return bcu[1];
},






inarray:function(aWI,lT)
{
if(Array.prototype.indexOf)
{
return Array.prototype.indexOf.call(lT,aWI);
}

for(var i=0,length=lT.length;i<length;i++)
{
if(lT[i]===aWI)
{
return i;
}
}

return-1;
},





isarray:function(bBC){
return Object.prototype.toString.call(bBC)==="[object Array]";
},





setScrollTop:function(cs)
{
var aGT=-1;
if(window.pageXOffset!=ay)
{
aGT=window.pageXOffset;
}
else if(QMWin.support("boxModel")&&document.documentElement&&document.documentElement.scrollLeft!=ay)
{
aGT=document.documentElement.scrollLeft;
}
else
{
aGT=document.body.scrollLeft;
}
window.scrollTo(aGT,cs);
},





updateStepTime:function(xG)
{
var ad=this,
AT={};
AT[xG]={steptime:QMWin.now()/1000,uin:xG,otheruin:xG};
ad.mergeCache({
update:'uininfo',
set:AT
});
ad.checkGardenUpd(xG);
},

checkGardenUpd:function(xG)
{
var ad=this,
au=al.lib("PLP.Data"),
Nv=au.get(bN,{type:"gardenupdfriends"}),
cBo=Nv.length,
Sb=0;
al.each(Nv,function(aI,kP)
{
if(aI==xG)
{
Nv=ad.array_del(Nv,kP);
au.post(bN,{type:"gardenupdfriends",value:Nv});
return false;
}
});
Sb=Nv.length;
if(cBo!=Sb)
{
if(Sb===0)
{
ad.$.$("div.toolbar span[un='gardenupdnum']").hide();
}
else
{
var XF=ad.$.$("div.toolbar span[un='gardenupdnum']");
XF.attr("title",["\u60a8\u6709",Sb,"\u4f4d\u74f6\u53cb\u66f4\u65b0\u4e86\u79d8\u5bc6\u82b1\u56ed"].join(""));
XF.find("span[un='num']").html(Sb);
}

}
},



showHistory:function(GY,Lp)
{

var eD=GY,
ad=this,
cb=eD.createCtrl(dw,{},
{
click:function(_aoEvent,ah,ao)
{
var ekf=eD.$.$("span#bottle_tips")
aK=_aoEvent.originalTarget||_aoEvent.srcElement,
gP=aK.getAttribute('mailid'),
oX=aK.getAttribute("ck");
if(oX==="read")
{
al.ossLog("delay","all","stat=plp&1=10024");
cb.destroy();
eD.createCtrl("PLP.InteractiveMail",
{
history:true,
mailid:gP,
bShowAct:true
},{
close:function()
{
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
});
}
else if(oX==="cls")
{
cb.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}

}
}),cm,ax;
if(Lp.uininfo)
{
cm=Lp.uininfo;
for(var i in cm)
{
if(cm[i])
{
Lp["qqicon"]=cm[i]["qqicon"];
Lp["remark"]=cm[i]["remark"];
Lp["beachname"]=cm[i]["beachname"];
break;
}
}
}
cb.showPlain(aJ.get("showHistory").replace(
{
mailid:Lp.mailid,
icon:Lp.qqicon,
name:Lp.remark||Lp.beachname||"\u533f\u540d\u74f6\u53cb",
send:Lp.send,
pick:Lp.pick

}),
{
delay:-1,
beforeHide:function()
{
cb.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
});

al.ossLog("delay","all","stat=plp&1=10023");
},


doAttrForPaperList:function(jZ)
{
var ad=this,
_oDom=ad.$.$('div#bottle_paperlist li[otheruin="'+jZ.uin+'"]');

if(_oDom.size()>0)
{
var bwF=aJ.get('fetchname').replace({
uininfo:jZ
});

_oDom.find('span.bold').html(bwF);
_oDom.find('p.subinfo').attr(bwF+'\u53d1\u6765\u4e86\u65b0\u7684\u6d88\u606f');
}
},


showHistoryOrChg:function(GY,at)
{
var eD=GY,
ad=this,
au=al.lib("PLP.Data"),
gL=au.get(bN,{type:"point"})||0;
au.get(bN,
{
type:"history"
},
function(as)
{
if(as)
{
al.extend(as,at);
ad.showHistory(eD,as);
}
else
{
if(gL>=10)
{
ad.showChangePoint(eD);
}
else
{
ad.showSendCard(eD);
}
}
});


},


showChangePoint:function(GY)
{
var eD=GY,
ad=this,
au=al.lib("PLP.Data"),
aC=au.get(bN,
{
type:"attr"
}
),
gL=(aC&&aC.point)||0,
Xi=gL,
ec=0,
afV=0,
bC=[],
aaC;
Xi=gL>=30?30:gL;
ec=Math.floor(Xi/10);
for(var i=1;i<=ec;i++)
{
bC.push({value:i*10});
}
afV=ec*10;

var fT=eD.createCtrl(dw,{},{
click:function(_aoEvent,ah,ao)
{
var aG=eD.$.$(_aoEvent.originalTarget||_aoEvent.srcElement),
oX=aG.attr("ck"),
ak=eD.$.$('#bottle_tips'),
aFK=ak.find("div[un=point]"),
nv=ak.find("div[un=pointlist]"),
ke=aFK.html();
if(oX=="chgpoint")
{
nv.hide();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
au.post("PLP.DCGeneral",
{
type:"chgpoint",
point:ke
},
{
oncomplete:function(cC,aT)
{
if(aT&&aT.success&&aT.success==1)
{

var xp=eD.$.$("div#toolbar a[act=Pick]"),
Ck=xp.find("div[un=oldpoint]"),
Dm=eD.$.$("div#profilePanel a[ck=showchgpoint]"),
YC=Dm.find("span.num"),
vh=gL-ke,
wP;

xp.insert(aJ.get("addPoint").replace({point:ke}),"beforeEnd");
wP=xp.find("div[un=newpoint]");


if(ad.supportTransition())
{
setTimeout(function()
{

wP.addClass("newExchange");
},100);

setTimeout(function()
{
wP.rmClass("newExchange");
if(Ck.size()>0)
{
Ck.html(ke);
}
else
{
xp.html(['<div un="oldpoint" class="numBg"><p>',ke,'</p></div>'].join(""));
}

au.post("PLP.DCGeneral",
{
type:"picking",
value:ke
}
);
},400);
}
else
{
var atG=parseInt(wP.css("opacity"),10);
al.animate(null,{
vDuration:"normal",
sEasing:"Linear",
onstep:function(eC)
{

var Xr=Math.floor(-80+55*eC),
sF=atG*(1-eC);
wP.css({top:Xr,opacity:sF});
},
oncomplete:function()
{

setTimeout(function()
{
if(Ck.size()>0)
{
Ck.html(ke);
}
else
{
xp.html(['<div un="oldpoint" class="numBg"><p>',ke,'</p></div>'].join(""));
}

au.post("PLP.DCGeneral",
{
type:"picking",
value:ke
}
);
},100);
}
});
}


Dm.attr("title","\u79ef\u5206\uff1a"+vh);
YC.html("("+vh+")");

if(gL>=30&&vh<30)
{
eD.$.$("span[un=pointico]").rmClass("ico_level_2").addClass("ico_level_1");
}


au.post("PLP.DCGeneral",
{
type:"attr",
value:
{
point:vh,
level:vh>30?2:1
}
}
);
fT.destroy();
eD.createCtrl(dw,{},{}).showOldInfo(
aJ.get("chgpointsuc").replace({point:ke}),
{
delay:3000
});
}
else
{
ak.find("div[un=loading]").hide();
ak.find("a[ck=chgpoint]").html("\u91cd\u8bd5");
ak.find("div[un=btndiv]").show();
ak.find("div[un=resulttip]").html(aJ.get("chgpointErr").replace({}));
}
}
});
ak.find("div[un=btndiv]").hide();
ak.find("div[un=loading]").show();
}
else if(oX=="showpoint")
{
nv.css("display","block");
ak.attr("mor","rd").attr("mot","rdt");
eD.buG(nv.data(0),ke);
ak.find("a[ck=chgpoint]").html("\u5151\u6362");
}
else if(oX=="setpoint")
{
nv.hide();
aFK.html(aG.attr("value"));
}
else if(oX=="cls")
{
fT.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
else
{
nv.hide();
}

}
}).showPlain(
aJ.get("changePointTip").replace(
{
point:gL,
changetime:10,
items:bC
}
),
{
delay:-1,
className:"notice",
beforeHide:function()
{
var aaC=eD.$.$("span#bottle_tips div.dialog_content_text");
aaC.rmClass("news_notice");
eD.$.$("span#bottle_tips").rmAttr("mot").rmAttr("mor").rmClass("notice");


ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
}
);
aaC=eD.$.$("span#bottle_tips div.dialog_content_text");
aaC.data(0).className+=" news_notice ";
},


showSendCard:function(GY)
{
var eD=GY,
ad=this,
TV=ad.request('plpfrom'),
ZS=parseInt((Math.random()*10),10)%2+9,
cb=eD.createCtrl(dw,{},{
click:function(_aoEvent,ah,ao)
{
if(ah.getAttribute('name')=='y')
{
cb.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
},
close:function()
{
cb.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
});
cb.showErr(
aJ.get('nofetch').replace({
plpfrom:TV,
number:ZS
}),
{
beforeHide:function()
{
cb.destroy(true);
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
},
delay:-1
}
);
},












xhrSend:function(bh,bn,bz)
{
var	bn=bn||{},
bGe=bn.timeout||bce,
gj=bn.method||'GET',
gw=[bn.data||'',"&sid=",al.sid(),'&plpfrom=',this.plpfrom(),"&resp_charset=UTF8&ef=js"].join(''),
bc=bh+'?'+bn.data,
ad=this;

if(gj!='GET'||!ad.bRi(bc))
{

al.ajax(
{
sUrl:bh,
vData:gw,
nTimeout:20000,
bCache:false,
sScriptCharset:"gb18030",
sType:gj,














ongetxhr:(al.ajaxSetting().ongetxhr
),







oncomplete:function(cE,de)
{
var gZ={};

if(de=='success')
{
var kz=al.evalVal(cE.responseText);

var FJ=bh+'?'+bn.data;


if(typeof kz!=='undefined'&&(!bn.method||bn.method=='GET'))
{
iB[FJ]={};
iB[FJ]['aliasname']=bn.aliasname||FJ;
iB[FJ]['url']=FJ;
iB[FJ]['timeout']=bGe;
iB[FJ]['timestamp']=(+new Date());
iB[FJ]['returnval']=kz;

if(kz.uininfo)
{
var cm=kz['uininfo'];
ad.mergeCache({
update:'uininfo',
set:cm
});
}
if(kz['uininfolist'])
{
ad.mergeCache({
update:'uininfo',
set:kz['uininfolist']
});
}
}

if(kz)
{
for(var obj in UR)
{
if(FJ.indexOf(obj)>-1)
{

al.lib('PLP.'+UR[obj]).pushData(kz);
break;
}
}

return al.call(bz,[kz]);
}
else
{
return al.call(bz,[]);
}
}

try{
gZ=al.evalVal(cE.responseText);
}catch(e){}

var dK={
title:"cgi exception",
errcode:de,
returnval:gZ,
errmsg:de=="timeout"?"\u64cd\u4f5c\u8d85\u65f6\u3002":"\u672a\u660e\u9519\u8bef\u3002"
};
al.call(bz,[dK]);
}
}
);
}
else
{


return al.call(bz,[iB[bc]['returnval']]);
}
},








bRi:function(bc)
{
if(typeof iB[bc]==='undefined')
{
return false;
}
else
{
if(bc.toLowerCase().indexOf('bottle_read')>-1)
{
return false;
}


var cH=false;
for(var i=0,l=aCG.length;i<l;i++)
{
if(bc.indexOf(aCG[i])>-1)
{
cH=true;
break;
}
}

if(((+new Date())>iB[bc]['timeout']+iB[bc]['timestamp']))
{
return cH;
}
else
{
return cH;
}
}
},

clearCache:function()
{
var ad=this;

iB={};
},

setCache:function(aw)
{
var ad=this;

var qL={
'ajax':ad.bNm
};

if(typeof aw.cachetype==='undefined')
{
aw.cachetype='ajax';
}





if(qL[aw.cachetype])
{
return qL[aw.cachetype].call(ad,aw);
}
return null;
},

getCache:function(aw)
{
var ad=this;

var qL={
'ajax':ad.bSC
};

if(typeof aw.cachetype==='undefined')
{
aw.cachetype='ajax';
}





if(qL[aw.cachetype])
{
return qL[aw.cachetype].call(ad,aw);
}
return null;
},

getMergeCache:function(aw)
{
var ad=this;

var qL={
'ajax':ad.bIp
};

if(typeof aw.cachetype==='undefined')
{
aw.cachetype='ajax';
}





if(qL[aw.cachetype])
{
return qL[aw.cachetype].call(ad,aw);
}
return null;
},

mergeCache:function(aw)
{
var ad=this;

var qL={
'ajax':ad.bRO
};

if(typeof aw.cachetype==='undefined')
{
aw.cachetype='ajax';
}





if(qL[aw.cachetype])
{
return qL[aw.cachetype].call(ad,aw);
}
return null;
},

bSC:function(aw)
{







var ad=this,
gZ=[],
bA=ad.amU(aw['select'],aw.where);

return bA;
},

bIp:function(aw)
{
var ad=this,
gZ=[],
bA=ad.aAr(aw['select'],aw.where);

return bA;
},

amU:function(kD,Pf)
{
var fD=[];

for(var obj in iB)
{
if(iB[obj]['aliasname']===kD)
{
if(typeof Pf!=='undefined')
{
var cH=true;
for(var o in Pf)
{
if(iB[obj]['returnval'][o]!=Pf[o])
{
cH=false;
break;
}
}
if(cH===true)
{
fD.push(iB[obj]);
}
}
else
{
fD.push(iB[obj]);
}
}
}

return fD;
},

aAr:function(kD,Pf)
{
var fD=[];

for(var obj in rO)
{
if(rO[obj]['aliasname']===kD)
{
if(typeof Pf!=='undefined')
{
var cH=true;
for(var o in Pf)
{
if(rO[obj]['returnval'][o]!=Pf[o])
{
cH=false;
break;
}
}
if(cH===true)
{
fD.push(rO[obj]);
}
}
else
{
fD.push(rO[obj]);
}
}
}

return fD;
},

bRO:function(aw)
{
var ad=this;

var qL={
'update':ad.bHg,
'del':ad.bWm
};

for(var obj in qL)
{
if(aw[obj])
{
return qL[obj].call(ad,aw);
}
}
},

bHg:function(aw)
{
var ad=this,
bA=ad.aAr(aw.update,aw.where);

var Ti=function(Nm){

for(var i=0,l=bA.length;i<l;i++)
{
for(var o in Nm)
{
if(typeof bA[i]['returnval'][o]==='undefined')
{
bA[i]['returnval'][o]={};
}
for(var key in Nm[o])
{

if(key=='steptime'&&bA[i]['returnval'][o][key])
{
if(parseInt(Nm[o][key],10)>parseInt(bA[i]['returnval'][o][key],10))
{
bA[i]['returnval'][o][key]=Nm[o][key];
}
}
else
{
bA[i]['returnval'][o][key]=Nm[o][key];
}









}
ad.doAttrForPaperList(bA[i]['returnval'][o]);
}
}

};

if(bA.length===0)
{

bA=ad.bVN.call(ad,aw.update);
}

if(aw.set)
{
Ti(aw.set);

if(typeof ama!=='undefined')
{
ad.bQG.call(ad,aw.update);
}

return bA;
}
else
{
return bA;
}

},

bQG:function(kD)
{
var ad=this;

if(ama[kD])
{
for(var obj in iB)
{
var _oItem=iB[obj]['returnval'];

for(var o in _oItem)
{
if(ad.inarray(o,ama[kD]['hash'])>-1)
{
al.each(_oItem[o],function(aI,aN)
{
if(aI&&rO[kD]['returnval'][aI[ama[kD]['key']]])
{
$.extend(iB[obj]['returnval'][o][aN],rO[kD][ama[kD]['key']]);
}
});
}
}
}
}
},

bVN:function(kD)
{

var fD=[];

rO[kD]={};
rO[kD]['aliasname']=kD;
rO[kD]['returnval']={};

fD.push(rO[kD]);

return fD;
},

bWm:function(aw)
{
var ad=this,
bA=ad.aAr(aw.del,aw.where);

if(bA)
{
if(aw.del)
{
ad.bGK(aw.del,aw.where);

return true;
}
else
{
return false;
}
}
else
{
return false;
}
},

bGK:function(kD)
{
for(var obj in rO)
{
if(rO[obj]['aliasname']===kD)
{
rO[obj]=null;
delete rO[obj];
}
}
},

bHs:function(kD)
{

for(var obj in iB)
{
if(iB[obj]['aliasname']===kD)
{

ad.bID.call(ad,iB[obj]);

iB[obj]=null;
delete iB[obj];
}
}
},

bzk:function(aw)
{









var ad=this,
bA=ad.amU(aw.update,aw.where);

var Ti=function(Nm){
for(var i=0,l=bA.length;i<l;i++)
{
for(var o in Nm)
{
bA[i][o]=Nm[o];
}
}
};

if(bA)
{
if(aw.set)
{
Ti(aw.set);

ad.aRy.call(ad,aw,aw.set);

return bA;
}
else
{
return bA;
}
}
else
{
return null;
}
},

aRy:function(aw,kr)
{
var ad=this;

for(var obj in UR)
{

if(obj.indexOf(aw.modeltype)>-1)
{
al.lib('PLP.'+UR[obj]).pushData(kr);
}
}
},

bID:function(kr)
{
var ad=this;

for(var obj in UR)
{
al.lib('PLP.'+UR[obj]).delData(kr);
}
},

bOr:function(aw)
{






var ad=this,
bA=ad.amU(aw.del,aw.where);

if(bA)
{
if(aw.del)
{
ad.bHs(aw.del,aw.where);

return true;
}
else
{
return false;
}
}
else
{
return false;
}
},

bFE:function(aw)
{











var ad=this,
bA=ad.amU(aw.insert);

if(bA&&bA.length&&bA.length>0)
{

return bA;
}
else
{
iB[aw.values.url]={};
iB[aw.values.url]['url']=aw.values.url;
iB[aw.values.url]['aliasname']=aw.values.aliasname;
iB[aw.values.url]['returnval']=aw.values.returnval;
iB[aw.values.url]['timeout']=aw.values.timeout||bce;
iB[aw.values.url]['timestamp']=(+new Date());

ad.aRy.call(ad,aw,aw.values.returnval);

return iB[aw.values.url];
}
},

bNm:function(aw)
{
var ad=this;

var qL={
'update':ad.bzk,
'insert':ad.bFE,
'del':ad.bOr
};

for(var obj in qL)
{
if(aw[obj])
{
return qL[obj].call(ad,aw);
}
}
},

changeSkin:function(bhv,iJ)
{
var ad=this,
fd=document.createElement("script"),
aVE=window.cssPathArray[parseInt(bhv,10)],
Ul=ad.$.$("link#skin");
fd.charset='gb2312';
fd.onload=fd.onreadystatechange=function()
{
if(!fd.readyState||/loaded|complete/.test(fd.readyState))
{
Ul.attr("href",aVE);
fd.onload=fd.onreadystatechange=null;
if(ad.$.$("head").data(0)&&fd.parentNode){
ad.$.$(fd).remove();
}
fd=undefined;
iJ&&iJ();
}
};
fd.src=aVE;
ad.$.$("head").insert(fd,"afterBegin");
},










callback:function(Ii,fZ,cC,aT)
{
if(fZ)
{
al.call(Ii,fZ[aT&&aT.errmsg?"onerror":"onsuccess"],[cC,aT]);
al.call(Ii,fZ.oncomplete,[cC,aT]);
}
},















rotate:function(we,aTR,adc)
{
var cJ=we.dom.style;
if(al.isBrowser("ie"))
{
var acI=Math,
atL=aTR*acI.PI/180,
apd=acI.cos(atL),
aoF=acI.sin(atL),
baK=acI.abs(apd),
bbp=acI.abs(aoF),
cQ=we.width,
dM=we.height,
bCP=(cQ-cQ*baK-dM*bbp)/2,
bDS=(dM-cQ*bbp-dM*baK)/2;

cJ.filter=["progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand',FilterType='nearest neighbor',M11=",apd,",M12=",aoF,",M21=",(-aoF),",M22=",apd,")","alpha(Opacity=",adc*100,")"].join("");


cJ.left=we.left+bCP+'px';
cJ.top=we.top+bDS+'px';
}
else
{
var aoQ="rotate("+(-aTR)+"deg)";

cJ.MozTransform=aoQ;
cJ.WebkitTransform=aoQ;
cJ.OTransform=aoQ;
cJ.opacity=adc;
}
},





throwBottle:function(bTD,iJ)
{
var ad=this,
GW=bTD.show(),
beB=+GW.attr("offsetLeft"),
beC=+GW.attr("offsetTop"),
bYh=+GW.attr("clientWidth"),
bWH=+GW.attr("clientHeight"),
bdS=0,
oJ=beC,
aMf=beB;












function bGX(we)
{
var _oDom=we.dom,
cJ=_oDom.style,
dM=_oDom.offsetHeight,
cQ=_oDom.offsetWidth,
cL=parseInt(cJ.top),
eP=parseInt(cJ.left),
gy=we.duration,
aWO=40,
Jq=gy/aWO,
hI=1,
bNg=we.round*360/Jq,
bNk=(we.endLeft-eP)/Jq,
dGd=(we.endTop-cL)/Jq,
bNj=(we.endWidth-cQ)/Jq;


cJ.marginLeft=-(cQ/2)+"px";
cJ.marginTop=-(dM/2)+"px";
cL+=cQ/2;
eP+=dM/2;
cJ.top=cL+"px";
cJ.left=eP+"px";

(function(){
if(hI++<=Jq)
{
setTimeout(arguments.callee,aWO);
}
else
{
return al.call(iJ);
}


var and=cQ+hI*bNj,
bbv=and/cQ*dM;
cJ.width=and+"px";
cJ.height="";
cJ.marginLeft=-and/2+"px";
cJ.marginTop=-bbv/2+"px";


var aTG=cL+(we.endTop-cL)*(1-(hI/Jq*5/3-1)*(hI/Jq*5/3-1)),
aQo=eP+hI*bNk;
cJ.top=aTG+"px";
cJ.left=aQo+"px";


ad.rotate({
dom:_oDom,
width:and,
height:bbv,
left:aQo,
top:aTG
},hI*bNg,Math.cos(Math.PI/2*(hI/Jq)));

})();

};

bGX({
dom:GW.data(0),
endTop:50,
endLeft:80,
endWidth:40,
round:2,
duration:1000
});
},

dateBreaker:function(Az)
{
if(Az&&Az.replace)
{
var reg=/(.{4,})(\s){1}(\d\d:\d\d)/g;

return Az.replace(reg,"$1");
}
else
{
return Az;
}
},

supportTransition:function()
{
var aZl=
{
0:"transitionProperty",
1:"WebkitTransitionProperty",
2:"MozTransitionProperty",
3:"OTransitionProperty",
4:"msTransitionProperty",
5:"KhtmlTransitionProperty"
},
bTx=document.createElement("div"),
cJ=bTx.style;

for(var o in aZl)
{
if(cJ[aZl[o]]!==undefined)
{
return true;
}
}
return false;
},

millTimeFormator:function(ajL,Oe)
{
if(+ajL<0||+Oe<0)
{
return"";
}
var hj=+Oe*1000,
QH=(+ajL)*1000,
kv=1000,
lg=60,
ph=60,
Ak=24,
bml=7,

Bf=kv*lg*ph*Ak,
Rk=hj-QH;


function It(hU,ajR)
{
var dG=new Date(hU);
dG.setUTCHours(15,59,59,999);
return(hj-(dG.getTime()-ajR));
};
function amo(hU)
{
var dG=new Date(hU);
dG.setFullYear(dG.getFullYear(),0,1);
dG.setUTCHours(-8,0,0,0);
return(hj-dG.getTime());
};

var zi=
{
"nn\u79d2\u524d":
{
max:kv*lg,
unit:kv
},

"nn\u5206\u949f\u524d":
{
max:kv*lg*ph,
unit:kv*lg
},

"nn\u5c0f\u65f6\u524d":
{
max:kv*lg*ph*6,
unit:kv*lg*ph
},

"\u4eca\u5929 hh:mm":
{
max:It(hj,Bf),
unit:kv*lg*ph*Ak
},
"\u6628\u5929 hh:mm":
{
max:It(hj,Bf*2),
unit:kv*lg*ph*Ak
},
"\u524d\u5929 hh:mm":
{
max:It(hj,Bf*3),
unit:kv*lg*ph*Ak
},

"MM\u6708dd\u65e5 hh:mm":
{
max:amo(hj),
unit:kv*lg*ph*Ak
},










"yyyy/MM/dd":
{
max:Infinity,
unit:0
}
};

for(var i in zi)
{
var eF=zi[i];


if(eF.max>Rk)
{
var dG=new Date(QH),
rq=dG.getHours()+"",
rw=dG.getMinutes()+"";

rq=rq.length==1?("0"+rq):rq;
rw=rw.length==1?("0"+rw):rw;


if(eF.unit!=0)
{
return i.replace("nn",Math.floor(Rk/eF.unit))
.replace("hh",rq).replace("mm",rw)
.replace("MM",dG.getMonth()+1).replace("dd",dG.getDate());
}
else
{
return i.replace("yyyy",dG.getFullYear())
.replace("MM",dG.getMonth()+1).replace("dd",dG.getDate())
.replace("hh",rq).replace("mm",rw);
}
}
}
},




checkCtrl:function(aw,fK)
{
var ad=this;

kB.hide();

if(xJ[aw.ctrlname])
{
if(xJ[aw.ctrlname].loaded===true)
{
return fK(aw);
}
else
{
ad.loadCtrl(aw,fK);
}
}
else
{
return fK(aw);
}
},

loadCtrl:function(aw,fK)
{
var ad=this,
vn=document.getElementsByTagName('head')[0],
fd=document.createElement("script");

ad.doPaperListOpacity(true);

if(typeof xJ[aw.ctrlname].loading==='undefined'||xJ[aw.ctrlname].loading===false)
{
xJ[aw.ctrlname].loading=true;

kB.html(aJ.get(xJ[aw.ctrlname].tmpl).replace({
status:'loading'
})).show();

ad.cmy=setTimeout(function(){
fd.timeout=true;
kB.html(aJ.get(xJ[aw.ctrlname].tmpl).replace({
status:'error'
})).show();
ad.isdLog({'speedid':1003,'13':1000});

switch(xJ[aw.ctrlname].alias)
{
case'bottle_garden':
ad.isdLog({'speedid':1003,'15':1000});
break;
case'bottle_list':
ad.isdLog({'speedid':1003,'14':1000});
break;
case'bottle_mailcompose':
ad.isdLog({'speedid':1003,'16':1000});
break;
case'qzoneimg':
ad.isdLog({'speedid':1003,'17':1000});
break;
default:
break;
}
},8000);

fd.charset='gb2312';
fd.async='async';
fd.src=xJ[aw.ctrlname].src;

fd.onload=fd.onreadystatechange=function()
{
if(!fd.readyState||/loaded|complete/.test(fd.readyState))
{
var bxf=fd.timeout;
fd.onload=fd.onreadystatechange=null;
vn.removeChild(fd);
fd=undefined;
clearTimeout(ad.cmy);


var qM=xJ[aw.ctrlname].alias;
for(var obj in xJ)
{
if(xJ[obj].alias===qM)
{
xJ[obj].loaded=true;
xJ[obj].loading=false;
}
}

window.nLoadCtrlTime=(+new Date())-window.nLoadCtrlTime;
if(al.getItem(qM)===xJ[aw.ctrlname].src)
{

switch(qM)
{
case'bottle_garden':
ad.isdLog({'speedid':1008,'2':window.nLoadCtrlTime});
break;
case'bottle_list':
ad.isdLog({'speedid':1008,'4':window.nLoadCtrlTime});
break;
case'bottle_mailcompose':
ad.isdLog({'speedid':1008,'6':window.nLoadCtrlTime});
break;
default:
break;
}
}
else
{
al.setItem(qM,xJ[aw.ctrlname].src)

switch(qM)
{
case'bottle_garden':
ad.isdLog({'speedid':1008,'1':window.nLoadCtrlTime});
break;
case'bottle_list':
ad.isdLog({'speedid':1008,'3':window.nLoadCtrlTime});
break;
case'bottle_mailcompose':
ad.isdLog({'speedid':1008,'5':window.nLoadCtrlTime});
break;
default:
break;
}
}

if(bxf!==true)
{
kB.hide();
fK(aw);
}
}
};

window.nLoadCtrlTime=+new Date();
vn.insertBefore(fd,vn.firstChild);
}
else
{
kB.html(aJ.get(xJ[aw.ctrlname].tmpl).replace({
status:'error'
})).show();
}
},




hideAll:function()
{
var bbs=['#bottle_magic','#bottle_all','#bottle_interactive','#bottle_mail','#bottle_setting','#bottle_send','#bottle_familiar','#homepage','#bottle_deliver_history'];

for(var i=0,l=bbs.length;i<l;i++)
{
al.$(bbs[i]).css('display','none');
}
},












init_:function(ap)
{
var ad=this;
ad.aj=ap||{},
ad.superEx_(av,"init_",[ap]);
}
}
);
}
);




var Gy={"\u4e2d\u56fd":{
"\u5317\u4eac":[{"name":"\u5317\u4eac","id":1280000}]
,"\u5929\u6d25":[{"name":"\u5929\u6d25","id":1280512}]
,"\u6cb3\u5317":[{"name":"\u4e0d\u9650","id":1281024},{"name":"\u77f3\u5bb6\u5e84","id":1281025},{"name":"\u5510\u5c71","id":1281026},{"name":"\u79e6\u7687\u5c9b","id":1281027},{"name":"\u90af\u90f8","id":1281028},{"name":"\u90a2\u53f0","id":1281029},{"name":"\u4fdd\u5b9a","id":1281030},{"name":"\u5f20\u5bb6\u53e3","id":1281031},{"name":"\u627f\u5fb7","id":1281032},{"name":"\u6ca7\u5dde","id":1281033},{"name":"\u5eca\u574a","id":1281034},{"name":"\u8861\u6c34","id":1281035}]
,"\u5c71\u897f":[{"name":"\u4e0d\u9650","id":1282048},{"name":"\u592a\u539f","id":1282060},{"name":"\u5927\u540c","id":1282061},{"name":"\u9633\u6cc9","id":1282062},{"name":"\u957f\u6cbb","id":1282063},{"name":"\u664b\u57ce","id":1282064},{"name":"\u6714\u5dde","id":1282065},{"name":"\u664b\u4e2d","id":1282066},{"name":"\u8fd0\u57ce","id":1282067},{"name":"\u5ffb\u5dde","id":1282068},{"name":"\u4e34\u6c7e","id":1282069},{"name":"\u5415\u6881","id":1282070}]
,"\u5185\u8499\u53e4":[{"name":"\u4e0d\u9650","id":1283072},{"name":"\u547c\u548c\u6d69\u7279","id":1283095},{"name":"\u5305\u5934","id":1283096},{"name":"\u4e4c\u6d77","id":1283097},{"name":"\u8d64\u5cf0","id":1283098},{"name":"\u901a\u8fbd","id":1283099},{"name":"\u9102\u5c14\u591a\u65af","id":1283100},{"name":"\u547c\u4f26\u8d1d\u5c14","id":1283101},{"name":"\u5df4\u5f66\u6dd6\u5c14","id":1283102},{"name":"\u4e4c\u5170\u5bdf\u5e03","id":1283103},{"name":"\u9521\u6797\u90ed\u52d2\u76df","id":1283104},{"name":"\u963f\u62c9\u5584\u76df","id":1283105},{"name":"\u5174\u5b89\u76df","id":1283106}]
,"\u6c5f\u82cf":[{"name":"\u4e0d\u9650","id":1289216},{"name":"\u5357\u4eac","id":1289251},{"name":"\u65e0\u9521","id":1289252},{"name":"\u5f90\u5dde","id":1289253},{"name":"\u5e38\u5dde","id":1289254},{"name":"\u82cf\u5dde","id":1289255},{"name":"\u5357\u901a","id":1289256},{"name":"\u8fde\u4e91\u6e2f","id":1289257},{"name":"\u6dee\u5b89","id":1289258},{"name":"\u76d0\u57ce","id":1289259},{"name":"\u626c\u5dde","id":1289260},{"name":"\u9547\u6c5f","id":1289261},{"name":"\u6cf0\u5dde","id":1289262},{"name":"\u5bbf\u8fc1","id":1289263}]
,"\u5b89\u5fbd":[{"name":"\u4e0d\u9650","id":1288704},{"name":"\u5408\u80a5","id":1288752},{"name":"\u829c\u6e56","id":1288753},{"name":"\u868c\u57e0","id":1288754},{"name":"\u6dee\u5357","id":1288755},{"name":"\u9a6c\u978d\u5c71","id":1288756},{"name":"\u6dee\u5317","id":1288757},{"name":"\u94dc\u9675","id":1288758},{"name":"\u5b89\u5e86","id":1288759},{"name":"\u9ec4\u5c71","id":1288760},{"name":"\u6ec1\u5dde","id":1288761},{"name":"\u961c\u9633","id":1288762},{"name":"\u5bbf\u5dde","id":1288763},{"name":"\u5de2\u6e56","id":1288764},{"name":"\u516d\u5b89","id":1288765},{"name":"\u4eb3\u5dde","id":1288766},{"name":"\u6c60\u5dde","id":1288767},{"name":"\u5ba3\u57ce","id":1288768}]
,"\u5c71\u4e1c":[{"name":"\u4e0d\u9650","id":1281536},{"name":"\u6d4e\u5357","id":1281601},{"name":"\u9752\u5c9b","id":1281602},{"name":"\u6dc4\u535a","id":1281603},{"name":"\u67a3\u5e84","id":1281604},{"name":"\u4e1c\u8425","id":1281605},{"name":"\u6f4d\u574a","id":1281606},{"name":"\u70df\u53f0","id":1281607},{"name":"\u5a01\u6d77","id":1281608},{"name":"\u6d4e\u5b81","id":1281609},{"name":"\u6cf0\u5b89","id":1281610},{"name":"\u65e5\u7167","id":1281611},{"name":"\u83b1\u829c","id":1281612},{"name":"\u4e34\u6c82","id":1281613},{"name":"\u5fb7\u5dde","id":1281614},{"name":"\u804a\u57ce","id":1281615},{"name":"\u6ee8\u5dde","id":1281616},{"name":"\u83cf\u6cfd","id":1281617}]
,"\u8fbd\u5b81":[{"name":"\u4e0d\u9650","id":1279488},{"name":"\u6c88\u9633","id":1279570},{"name":"\u5927\u8fde","id":1279571},{"name":"\u978d\u5c71","id":1279572},{"name":"\u629a\u987a","id":1279573},{"name":"\u672c\u6eaa","id":1279574},{"name":"\u4e39\u4e1c","id":1279575},{"name":"\u9526\u5dde","id":1279576},{"name":"\u8425\u53e3","id":1279577},{"name":"\u961c\u65b0","id":1279578},{"name":"\u8fbd\u9633","id":1279579},{"name":"\u76d8\u9526","id":1279580},{"name":"\u94c1\u5cad","id":1279581},{"name":"\u671d\u9633","id":1279582},{"name":"\u846b\u82a6\u5c9b","id":1279583}]
,"\u5409\u6797":[{"name":"\u4e0d\u9650","id":1278976},{"name":"\u957f\u6625","id":1279072},{"name":"\u5409\u6797","id":1279073},{"name":"\u56db\u5e73","id":1279074},{"name":"\u8fbd\u6e90","id":1279075},{"name":"\u901a\u5316","id":1279076},{"name":"\u767d\u5c71","id":1279077},{"name":"\u677e\u539f","id":1279078},{"name":"\u767d\u57ce","id":1279079},{"name":"\u5ef6\u8fb9\u5dde","id":1279080}]
,"\u9ed1\u9f99\u6c5f":[{"name":"\u4e0d\u9650","id":1278464},{"name":"\u54c8\u5c14\u6ee8","id":1278569},{"name":"\u9f50\u9f50\u54c8\u5c14","id":1278570},{"name":"\u9e21\u897f","id":1278571},{"name":"\u9e64\u5c97","id":1278572},{"name":"\u53cc\u9e2d\u5c71","id":1278573},{"name":"\u5927\u5e86","id":1278574},{"name":"\u4f0a\u6625","id":1278575},{"name":"\u7261\u4e39\u6c5f","id":1278576},{"name":"\u4f73\u6728\u65af","id":1278577},{"name":"\u4e03\u53f0\u6cb3","id":1278578},{"name":"\u9ed1\u6cb3","id":1278579},{"name":"\u7ee5\u5316","id":1278580},{"name":"\u5927\u5174\u5b89\u5cad\u5730\u533a","id":1278581}]
,"\u4e0a\u6d77":[{"name":"\u4e0a\u6d77","id":1289728}]
,"\u6d59\u6c5f":[{"name":"\u4e0d\u9650","id":1290240},{"name":"\u676d\u5dde","id":1290358},{"name":"\u5b81\u6ce2","id":1290359},{"name":"\u6e29\u5dde","id":1290360},{"name":"\u5609\u5174","id":1290361},{"name":"\u6e56\u5dde","id":1290362},{"name":"\u7ecd\u5174","id":1290363},{"name":"\u91d1\u534e","id":1290364},{"name":"\u8862\u5dde","id":1290365},{"name":"\u821f\u5c71","id":1290366},{"name":"\u53f0\u5dde","id":1290367},{"name":"\u4e3d\u6c34","id":1290368}]
,"\u6c5f\u897f":[{"name":"\u4e0d\u9650","id":1291264},{"name":"\u5357\u660c","id":1291393},{"name":"\u666f\u5fb7\u9547","id":1291394},{"name":"\u840d\u4e61","id":1291395},{"name":"\u4e5d\u6c5f","id":1291396},{"name":"\u65b0\u4f59","id":1291397},{"name":"\u9e70\u6f6d","id":1291398},{"name":"\u8d63\u5dde","id":1291399},{"name":"\u5409\u5b89","id":1291400},{"name":"\u5b9c\u6625","id":1291401},{"name":"\u629a\u5dde","id":1291402},{"name":"\u4e0a\u9976","id":1291403}]
,"\u798f\u5efa":[{"name":"\u4e0d\u9650","id":1291776},{"name":"\u798f\u5dde","id":1291916},{"name":"\u53a6\u95e8","id":1291917},{"name":"\u8386\u7530","id":1291918},{"name":"\u4e09\u660e","id":1291919},{"name":"\u6cc9\u5dde","id":1291920},{"name":"\u6f33\u5dde","id":1291921},{"name":"\u5357\u5e73","id":1291922},{"name":"\u9f99\u5ca9","id":1291923},{"name":"\u5b81\u5fb7","id":1291924}]
,"\u6e56\u5317":[{"name":"\u4e0d\u9650","id":1287168},{"name":"\u6b66\u6c49","id":1287317},{"name":"\u9ec4\u77f3","id":1287318},{"name":"\u8944\u9633","id":1287319},{"name":"\u5341\u5830","id":1287320},{"name":"\u8346\u5dde","id":1287321},{"name":"\u5b9c\u660c","id":1287322},{"name":"\u8346\u95e8","id":1287323},{"name":"\u9102\u5dde","id":1287324},{"name":"\u5b5d\u611f","id":1287325},{"name":"\u9ec4\u5188","id":1287326},{"name":"\u54b8\u5b81","id":1287327},{"name":"\u968f\u5dde","id":1287328},{"name":"\u6069\u65bd\u5dde","id":1287329},{"name":"\u4ed9\u6843","id":1287330},{"name":"\u5929\u95e8","id":1287331},{"name":"\u6f5c\u6c5f","id":1287332},{"name":"\u795e\u519c\u67b6\u6797\u533a","id":1287333}]
,"\u6e56\u5357":[{"name":"\u4e0d\u9650","id":1290752},{"name":"\u957f\u6c99","id":1290918},{"name":"\u682a\u6d32","id":1290919},{"name":"\u6e58\u6f6d","id":1290920},{"name":"\u8861\u9633","id":1290921},{"name":"\u90b5\u9633","id":1290922},{"name":"\u5cb3\u9633","id":1290923},{"name":"\u5e38\u5fb7","id":1290924},{"name":"\u5f20\u5bb6\u754c","id":1290925},{"name":"\u76ca\u9633","id":1290926},{"name":"\u90f4\u5dde","id":1290927},{"name":"\u6c38\u5dde","id":1290928},{"name":"\u6000\u5316","id":1290929},{"name":"\u5a04\u5e95","id":1290930},{"name":"\u6e58\u897f\u5dde","id":1290931}]
,"\u6cb3\u5357":[{"name":"\u4e0d\u9650","id":1287680},{"name":"\u90d1\u5dde","id":1287860},{"name":"\u5f00\u5c01","id":1287861},{"name":"\u6d1b\u9633","id":1287862},{"name":"\u5e73\u9876\u5c71","id":1287863},{"name":"\u7126\u4f5c","id":1287864},{"name":"\u9e64\u58c1","id":1287865},{"name":"\u65b0\u4e61","id":1287866},{"name":"\u5b89\u9633","id":1287867},{"name":"\u6fee\u9633","id":1287868},{"name":"\u8bb8\u660c","id":1287869},{"name":"\u6f2f\u6cb3","id":1287870},{"name":"\u4e09\u95e8\u5ce1","id":1287871},{"name":"\u5357\u9633","id":1287872},{"name":"\u5546\u4e18","id":1287873},{"name":"\u4fe1\u9633","id":1287874},{"name":"\u5468\u53e3","id":1287875},{"name":"\u9a7b\u9a6c\u5e97","id":1287876},{"name":"\u6d4e\u6e90","id":1287877}]
,"\u5e7f\u4e1c":[{"name":"\u4e0d\u9650","id":1293312},{"name":"\u5e7f\u5dde","id":1293510},{"name":"\u6df1\u5733","id":1293511},{"name":"\u73e0\u6d77","id":1293512},{"name":"\u6c55\u5934","id":1293513},{"name":"\u97f6\u5173","id":1293514},{"name":"\u6cb3\u6e90","id":1293515},{"name":"\u6885\u5dde","id":1293516},{"name":"\u60e0\u5dde","id":1293517},{"name":"\u6c55\u5c3e","id":1293518},{"name":"\u4e1c\u839e","id":1293519},{"name":"\u4e2d\u5c71","id":1293520},{"name":"\u6c5f\u95e8","id":1293521},{"name":"\u4f5b\u5c71","id":1293522},{"name":"\u9633\u6c5f","id":1293523},{"name":"\u6e5b\u6c5f","id":1293524},{"name":"\u8302\u540d","id":1293525},{"name":"\u8087\u5e86","id":1293526},{"name":"\u6e05\u8fdc","id":1293527},{"name":"\u6f6e\u5dde","id":1293528},{"name":"\u63ed\u9633","id":1293529},{"name":"\u4e91\u6d6e","id":1293530}]
,"\u5e7f\u897f":[{"name":"\u4e0d\u9650","id":1293824},{"name":"\u5357\u5b81","id":1294043},{"name":"\u67f3\u5dde","id":1294044},{"name":"\u6842\u6797","id":1294045},{"name":"\u68a7\u5dde","id":1294046},{"name":"\u5317\u6d77","id":1294047},{"name":"\u9632\u57ce\u6e2f","id":1294048},{"name":"\u94a6\u5dde","id":1294049},{"name":"\u8d35\u6e2f","id":1294050},{"name":"\u7389\u6797","id":1294051},{"name":"\u767e\u8272","id":1294052},{"name":"\u8d3a\u5dde","id":1294053},{"name":"\u6cb3\u6c60","id":1294054},{"name":"\u6765\u5bbe","id":1294055},{"name":"\u5d07\u5de6","id":1294056}]
,"\u6d77\u5357":[{"name":"\u4e0d\u9650","id":1294336},{"name":"\u6d77\u53e3","id":1294569},{"name":"\u4e09\u4e9a","id":1294570},{"name":"\u4e94\u6307\u5c71","id":1294571},{"name":"\u743c\u6d77","id":1294572},{"name":"\u510b\u5dde","id":1294573},{"name":"\u6587\u660c","id":1294574},{"name":"\u4e07\u5b81","id":1294575},{"name":"\u4e1c\u65b9","id":1294576},{"name":"\u6f84\u8fc8\u53bf","id":1294577},{"name":"\u5b9a\u5b89\u53bf","id":1294578},{"name":"\u5c6f\u660c\u53bf","id":1294579},{"name":"\u4e34\u9ad8\u53bf","id":1294580},{"name":"\u767d\u6c99\u9ece\u65cf\u81ea\u6cbb\u53bf","id":1294581},{"name":"\u660c\u6c5f\u9ece\u65cf\u81ea\u6cbb\u53bf","id":1294582},{"name":"\u4e50\u4e1c\u9ece\u65cf\u81ea\u6cbb\u53bf","id":1294583},{"name":"\u9675\u6c34\u9ece\u65cf\u81ea\u6cbb\u53bf","id":1294584},{"name":"\u4fdd\u4ead\u9ece\u65cf\u82d7\u65cf\u81ea\u6cbb\u53bf","id":1294585},{"name":"\u743c\u4e2d\u9ece\u65cf\u82d7\u65cf\u81ea\u6cbb\u53bf","id":1294586}]
,"\u91cd\u5e86":[{"name":"\u91cd\u5e86","id":1286656}]
,"\u56db\u5ddd":[{"name":"\u4e0d\u9650","id":1286144},{"name":"\u6210\u90fd","id":1286420},{"name":"\u81ea\u8d21","id":1286421},{"name":"\u6500\u679d\u82b1","id":1286422},{"name":"\u6cf8\u5dde","id":1286423},{"name":"\u5fb7\u9633","id":1286424},{"name":"\u7ef5\u9633","id":1286425},{"name":"\u5e7f\u5143","id":1286426},{"name":"\u9042\u5b81","id":1286427},{"name":"\u5185\u6c5f","id":1286428},{"name":"\u4e50\u5c71","id":1286429},{"name":"\u5357\u5145","id":1286430},{"name":"\u5b9c\u5bbe","id":1286431},{"name":"\u5e7f\u5b89","id":1286432},{"name":"\u8fbe\u5dde","id":1286433},{"name":"\u7709\u5c71","id":1286434},{"name":"\u96c5\u5b89","id":1286435},{"name":"\u5df4\u4e2d","id":1286436},{"name":"\u8d44\u9633","id":1286437},{"name":"\u963f\u575d\u5dde","id":1286438},{"name":"\u7518\u5b5c\u5dde","id":1286439},{"name":"\u51c9\u5c71\u5dde","id":1286440}]
,"\u8d35\u5dde":[{"name":"\u4e0d\u9650","id":1292288},{"name":"\u8d35\u9633","id":1292585},{"name":"\u516d\u76d8\u6c34","id":1292586},{"name":"\u9075\u4e49","id":1292587},{"name":"\u5b89\u987a","id":1292588},{"name":"\u94dc\u4ec1\u5730\u533a","id":1292589},{"name":"\u6bd5\u8282\u5730\u533a","id":1292590},{"name":"\u9ed4\u897f\u5357\u5dde","id":1292591},{"name":"\u9ed4\u4e1c\u5357\u5dde","id":1292592},{"name":"\u9ed4\u5357\u5dde","id":1292593}]
,"\u4e91\u5357":[{"name":"\u4e0d\u9650","id":1292800},{"name":"\u6606\u660e","id":1293106},{"name":"\u66f2\u9756","id":1293107},{"name":"\u7389\u6eaa","id":1293108},{"name":"\u4fdd\u5c71","id":1293109},{"name":"\u662d\u901a","id":1293110},{"name":"\u4e3d\u6c5f","id":1293111},{"name":"\u666e\u6d31","id":1293112},{"name":"\u4e34\u6ca7","id":1293113},{"name":"\u6587\u5c71\u5dde","id":1293114},{"name":"\u7ea2\u6cb3\u5dde","id":1293115},{"name":"\u897f\u53cc\u7248\u7eb3\u5dde","id":1293116},{"name":"\u695a\u96c4\u5dde","id":1293117},{"name":"\u5927\u7406\u5dde","id":1293118},{"name":"\u5fb7\u5b8f\u5dde","id":1293119},{"name":"\u6012\u6c5f\u5dde","id":1293120},{"name":"\u8fea\u5e86\u5dde","id":1293121}]
,"\u897f\u85cf":[{"name":"\u4e0d\u9650","id":1285632},{"name":"\u62c9\u8428","id":1285954},{"name":"\u90a3\u66f2\u5730\u533a","id":1285955},{"name":"\u660c\u90fd\u5730\u533a","id":1285956},{"name":"\u5c71\u5357\u5730\u533a","id":1285957},{"name":"\u65e5\u5580\u5219\u5730\u533a","id":1285958},{"name":"\u963f\u91cc\u5730\u533a","id":1285959},{"name":"\u6797\u829d\u5730\u533a","id":1285960}]
,"\u9655\u897f":[{"name":"\u4e0d\u9650","id":1282560},{"name":"\u897f\u5b89","id":1282889},{"name":"\u94dc\u5ddd","id":1282890},{"name":"\u5b9d\u9e21","id":1282891},{"name":"\u54b8\u9633","id":1282892},{"name":"\u6e2d\u5357","id":1282893},{"name":"\u5ef6\u5b89","id":1282894},{"name":"\u6c49\u4e2d","id":1282895},{"name":"\u6986\u6797","id":1282896},{"name":"\u5b89\u5eb7","id":1282897},{"name":"\u5546\u6d1b","id":1282898}]
,"\u7518\u8083":[{"name":"\u4e0d\u9650","id":1284096},{"name":"\u5170\u5dde","id":1284435},{"name":"\u91d1\u660c","id":1284436},{"name":"\u767d\u94f6","id":1284437},{"name":"\u5929\u6c34","id":1284438},{"name":"\u5609\u5cea\u5173","id":1284439},{"name":"\u6b66\u5a01","id":1284440},{"name":"\u5f20\u6396","id":1284441},{"name":"\u5e73\u51c9","id":1284442},{"name":"\u9152\u6cc9","id":1284443},{"name":"\u5e86\u9633","id":1284444},{"name":"\u5b9a\u897f","id":1284445},{"name":"\u9647\u5357","id":1284446},{"name":"\u4e34\u590f\u5dde","id":1284447},{"name":"\u7518\u5357\u5dde","id":1284448}]
,"\u5b81\u590f":[{"name":"\u4e0d\u9650","id":1283584},{"name":"\u94f6\u5ddd","id":1283937},{"name":"\u77f3\u5634\u5c71","id":1283938},{"name":"\u5434\u5fe0","id":1283939},{"name":"\u56fa\u539f","id":1283940},{"name":"\u4e2d\u536b","id":1283941}]
,"\u9752\u6d77":[{"name":"\u4e0d\u9650","id":1284608},{"name":"\u897f\u5b81","id":1284966},{"name":"\u6d77\u4e1c\u5730\u533a","id":1284967},{"name":"\u6d77\u5317\u5dde","id":1284968},{"name":"\u9ec4\u5357\u5dde","id":1284969},{"name":"\u6d77\u5357\u5dde","id":1284970},{"name":"\u679c\u6d1b\u5dde","id":1284971},{"name":"\u7389\u6811\u5dde","id":1284972},{"name":"\u6d77\u897f\u5dde","id":1284973}]
,"\u65b0\u7586":[{"name":"\u4e0d\u9650","id":1285120},{"name":"\u4e4c\u9c81\u6728\u9f50","id":1285486},{"name":"\u514b\u62c9\u739b\u4f9d","id":1285487},{"name":"\u5410\u9c81\u756a\u5730\u533a","id":1285488},{"name":"\u54c8\u5bc6\u5730\u533a","id":1285489},{"name":"\u548c\u7530\u5730\u533a","id":1285490},{"name":"\u963f\u514b\u82cf\u5730\u533a","id":1285491},{"name":"\u5580\u4ec0\u5730\u533a","id":1285492},{"name":"\u514b\u5b5c\u52d2\u82cf\u67ef\u5dde","id":1285493},{"name":"\u5df4\u97f3\u90ed\u695e\u5dde","id":1285494},{"name":"\u660c\u5409\u5dde","id":1285495},{"name":"\u535a\u5c14\u5854\u62c9\u5dde","id":1285496},{"name":"\u4f0a\u7281\u5dde","id":1285497},{"name":"\u5854\u57ce\u5730\u533a","id":1285498},{"name":"\u963f\u52d2\u6cf0\u5730\u533a","id":1285499},{"name":"\u77f3\u6cb3\u5b50","id":1285500},{"name":"\u963f\u62c9\u5c14","id":1285501},{"name":"\u56fe\u6728\u8212\u514b","id":1285502},{"name":"\u4e94\u5bb6\u6e20","id":1285503}]
,"\u9999\u6e2f":[{"name":"\u9999\u6e2f","id":1302528}]
,"\u6fb3\u95e8":[{"name":"\u6fb3\u95e8","id":1303040}]
,"\u53f0\u6e7e":[{"name":"\u4e0d\u9650","id":1288192},{"name":"\u53f0\u5317","id":1288576},{"name":"\u9ad8\u96c4","id":1288577},{"name":"\u53f0\u4e2d","id":1288578},{"name":"\u82b1\u83b2","id":1288579},{"name":"\u57fa\u9686","id":1288580},{"name":"\u5609\u4e49","id":1288581},{"name":"\u82d7\u6817","id":1288584},{"name":"\u5357\u6295","id":1288585},{"name":"\u6f8e\u6e56","id":1288586},{"name":"\u5c4f\u4e1c","id":1288587},{"name":"\u53f0\u4e1c","id":1288588},{"name":"\u53f0\u5357","id":1288589},{"name":"\u6843\u56ed","id":1288590},{"name":"\u65b0\u7af9","id":1288591},{"name":"\u5b9c\u5170","id":1288592},{"name":"\u4e91\u6797","id":1288593},{"name":"\u5f70\u5316","id":1288594},{"name":"\u91d1\u95e8","id":1288582},{"name":"\u8fde\u6c5f","id":1288583}]
},
"\u5176\u4ed6\u5730\u533a":{
"\u5176\u4ed6\u5730\u533a":[{"name":"\u5176\u4ed6\u5730\u533a","id":"32768"}]
}};

}


);




$.package(

"bottle/model/modellist.js",


[


],


function(ay)
{

var $=ay,
al=QMWin;




QMWin.createLib(

"PLP.ModelList",


{bStatic:true},


function(av)
{

var aJ=al.lib('PLP.Template'),



jz={},
iu={'garden':{}},
np={'items':[]},





vg={},



PB={},



sz={},
cvC=3,
Uj={
'drop':'bottle_dropitems',
'friend':'bottle_recieveexitems',
'collected':'bottle_collecteditems',
'canadd':'bottle_recommanditems',
'collect':'bottle_collectitems',
'allunread':'bottle_unreaditems',
'mood':'bottle_mooditems',
'sysmsg':'bottle_sysmsgitems',
'search':'bottle_searchitems',
'garden':'bottle_gardenitems',
'invite':'bottle_inviteitems'
},
sO={
'drop':'bottle_drop',
'friend':'bottle_recieveex',
'collected':'bottle_collected',
'canadd':'bottle_recommand',
'collect':'bottle_collect',
'allunread':'bottle_unread',
'mood':'bottle_mood',
'sysmsg':'bottle_sysmsg',
'search':'bottle_search',
'garden':'bottle_garden',
'invite':'bottle_invite'
},
dRc={
'getrecommand':jz,
'status':jz,
'search':vg
},
IF={},

bQ=
{
FV:"/cgi-bin/bottle_list",
aYs:"/cgi-bin/bottle_list",
aOy:"/cgi-bin/bottle_list",
acK:"/cgi-bin/bottle_msg",
Kj:"/cgi-bin/bottle_opr",
dun:"/cgi-bin/bottle_opr",
aXn:"/cgi-bin/bottle_attr",
bBQ:"/cgi-bin/bottle_opr"
},
bX=
{
FV:al.T("listtype=bottle_recieveex&page=$page$&pagesize=20&listtype=bottle_drop&page=$page$&pagesize=$pagesize$&listtype=bottle_unread&page=0&pagesize=50&$action$&truepage=$page$"),
dgt:al.T("listtype=bottle_invite&page=$page$&pagesize=$pagesize$"),
dzZ:al.T("listtype=bottle_collect&page=0&pagesize=512&truepage=0"),
aYs:al.T("listtype=bottle_garden&page=$page$&pagesize=5&otheruin=$otheruin$&truepage=$page$"),
aOy:al.T("t=bottle_list&page=$page$&pagesize=$pagesize$&action=search&listtype=$searchlisttype$&keyword=$keyword$&searchtype=$searchtype$&bottletype=$bottletype$&truepage=$page$"),
cfZ:al.T("listtype=bottle_recommand&page=$page$&pagesize=$pagesize$&truepage=$page$"),
acK:al.T("t=bottle_list&listtype=$listtype$&page=$page$&pagesize=$pagesize$&truepage=$page$"),
cBI:al.T("listtype=$listtype$&page=0&pagesize=50&truepage=0"),
cBQ:al.T("listtype=$listtype$&page=$page$&pagesize=$pagesize$&truepage=$page$"),
Kj:al.T("msgid=&cmd=readmsg"),
dun:al.T("mailid=&cmd=readcollected"),
aXn:al.TE([
"t=bottle_attr",
"$@$for($uinlist$)$@$",
"&uin=$_this_$",
"$@$endfor$@$"
]),
bBQ:al.TE(["cmd=getpic&otheruin=$otheruin$"])
},
aD=al.lib('PLP.Util');

window.oWebpushArray=[];

var array_del=function(lT,n)
{



if(n<0)
{
return lT;
}
else
{
return lT.slice(0,n).concat(lT.slice(n+1,lT.length));
}






};


var	array_insert=function(lT,ic,_nIdx)
{
var arrTemp=lT;
if(_nIdx>arrTemp.length)
{
_nIdx=arrTemp.length;
}
if(_nIdx<-arrTemp.length)
{
_nIdx=0;
}
if(_nIdx<0)
{
_nIdx=arrTemp.length+_nIdx;
}
for(var ii=arrTemp.length;ii>_nIdx;ii--)
{
arrTemp[ii]=arrTemp[ii-1];
}
arrTemp[_nIdx]=ic;
return arrTemp;
};


var array_sort=function(a,b)
{
return b-a;
};

return(
{



pushData:function(ax)
{




var ad=this;

if(ax)
{
ad.aRe.call(ad,ax);
}
},




getData:function(aw,bz)
{
var aP=aw.type,
ad=this;

if(typeof ad.Qv[aP]!=='undefined')
{
return ad.Qv[aP].call(ad,aw,bz);
}

return null;
},




postData:function(aw,bz)
{
var aP=aw.type,
ad=this;

if(typeof ad.Qv[aP]!=='undefined')
{
return ad.Qv[aP].call(ad,aw,bz);
}
},




delData:function(kr)
{
var ad=this,
IU=kr['returnval'].listtype;

for(var obj in sO)
{
if(sO[obj]==IU)
{
ad.Cy.call(ad,obj,true);
}
}
},




Cy:function(aP,cH)
{
var ad=this;

for(var obj in sO)
{
if(sO[obj]==aP)
{
aP=obj;
break;
}
}

if(cH===true)
{
jz[aP]=null;
delete jz[aP];
}
else
{
ad.cvq(aP);
}





aD.clearCache();
},

aRe:function(ax)
{
var ad=this;

if(typeof ax.bottle_unreaditems!=='undefined')
{
al.extend(np,ax.bottle_unread);
}

for(var obj in sO)
{
if(obj==='garden'&&typeof ax[sO[obj]]!=='undefined')
{

ad.dbs.call(ad,ax,obj);
}
else
{
if(typeof ax[sO[obj]]!=='undefined'&&typeof ax[Uj[obj]]!=='undefined')
{

if(!iu[obj])
{
iu[obj]={};
}

for(var o in ax[sO[obj]])
{
iu[obj][o]=ax[sO[obj]][o];
}

if(ax.action!=='')
{
ad.crF.call(ad,ax,obj);
}
else
{
ad.brh.call(ad,ax,obj);
}
}
}
}

},

dbs:function(ax,obj)
{
var ad=this;


if(!iu[obj][ax.otheruin])
{
iu[obj][ax.otheruin]={};
}
for(var o in ax[sO[obj]])
{
iu[obj][ax.otheruin][o]=ax[sO[obj]][o];
}

if(typeof PB[ax.otheruin]==='undefined')
{
PB[ax.otheruin]=[];
}

ad.bdZ.call(ad,ax,PB[ax.otheruin],'garden');


if(typeof IF['gardey']!=='undefined'&&typeof IF['gardey'][ax.otheruin]!=='undefined')
{
IF['gardey'][ax.otheruin]=null;
delete IF['gardey'][ax.otheruin];


sz[ax.otheruin]['gallery']=null;
}
},

brh:function(ax,obj)
{
var ad=this;

if(typeof jz[obj]==='undefined')
{
jz[obj]=[];
}
ad.bdZ.call(ad,ax,jz[obj],obj);
},

crF:function(ax,obj)
{
var ad=this;

if(ax.action==='search')
{
if(typeof vg[ax.listtype]==='undefined')
{
vg[ax.listtype]={};
}
if(typeof vg[ax.listtype][ax.searchtype]==='undefined')
{
vg[ax.listtype][ax.searchtype]={};
}
if(typeof vg[ax.listtype][ax.searchtype][ax.keyword]==='undefined')
{
vg[ax.listtype][ax.searchtype][ax.keyword]=[];
}
ad.bdZ.call(ad,ax,vg[ax.listtype][ax.searchtype][ax.keyword],obj);
}
else
{
ad.brh.call(ad,ax,obj);
}

},

bdZ:function(ax,bA,obj)
{
var ad=this;

var jm=ax[sO[obj]]['timestamp']+"";

var cEi=parseInt(ax[sO[obj]].page,10),
cEs=parseInt(ax[sO[obj]].pagesize,10);

for(var i=0,l=ax[Uj[obj]].length;i<l;i++)
{

var aI=ax[Uj[obj]][i],
aN=i;


if(obj!=='allunread')
{
aI=ad.cEm.call(ad,aI,aN,ax,jm);

ax[Uj[obj]][i]=aI;


bA[cEi*cEs+i]=ax[Uj[obj]][i];
}


if(obj==='allunread')
{

ax[Uj[obj]][i]=ad.cxY(ax[Uj[obj]][i]);

var cH=false;

np['items'].push(ax[Uj[obj]][i]);
}
}


ad.dls();
},

cEm:function(aI,aN,ax,jm)
{
var ad=this;

aI.ntime=parseInt(aI.time,10);


var eW=aD.millTimeFormator(aI.time,jm);
aI.stime=eW;
aI.ctime=aD.dateBreaker(eW);


aI=ad.bsF.call(ad,aI,aN,ax);


aI=ad.bpW.call(ad,aI,aN,ax);

aI=ad.cHa.call(ad,aI,aN,ax);

return aI;
},

dls:function()
{
var ad=this,
cAq={},
bAx=[];


for(var i=0,l=np['items'].length;i<l;i++)
{

if(typeof cAq[np['items'][i].mailid]==='undefined')
{
cAq[np['items'][i].mailid]=-1;
}
else
{
bAx.push(i);
}
}

for(var i=bAx.length-1;i>-1;i--)
{
np['items']=array_del(np['items'],bAx[i]);
}

for(var i=np['items'].length-1;i>-1;i--)
{
window.oWebpushArray=aD.arrayPushWithCheck(window.oWebpushArray,np['items'][i].mailid);
}

al.lib('PLP.Data').get('PLP.DCGeneral',
{
type:"unread",
value:np['items'].length
});
},

dzh:function(aw)
{
var ad=this,
bA=jz['collect'],
bo=[],
cuk=[],
byP=0,
bNM=0,
cH=1,
cfu=1,
vt=ad.afU();

if(!bA)
{
return false;
}

for(var i=0,l=bA.length;i<l;i++)
{
if(!vt[bA[i].otheruin]||!vt[bA[i].otheruin].updatetime)
{
vt[bA[i].otheruin].updatetime=0;
}
byP=parseInt(vt[bA[i].otheruin].updatetime,10);
bNM=parseInt(vt[bA[i].otheruin].steptime,10);
cH=(byP-bNM>0)?1:0;

if(bA[i].magicid=='11')
{
cH=0;
}
cfu=(cH===1)?1:-1;
bo.push((byP-bNM)*1000*cH+i*cfu);
}

bo.sort(array_sort);

for(var i=0,l=bo.length;i<l;i++)
{
cuk[i]=bA[Math.abs(bo[i]%1000)];
}

jz['collect']=cuk;
},

doMagic8ForList:function(aI)
{

if(aI.subject)
{
aI.content=aI.subject.split('@');
if(aI.content[2])
{
aI.subject=aI.content[2];
}
else
{
aI.subject=aI.content[0];
}
}

return aI;
},

doMagic9ForList:function(aI)
{

if(aI.subject)
{

aI.curstatus=0;

if(aI.subject)
{
var aR=aI.subject;

if(aR.charAt(0)==='#')
{

var bo=aR.split('#');

if(bo.length>2)
{
aI.subject='';
for(var i=2;i<bo.length;i++)
{
aI.subject+=bo[i];
}
}
}
}
}

return aI;
},

doMagic10ForList:function(aI)
{

if(aI['digest']=="")
{
aI['unfound']=1;
}
else
{
aI['unfound']=0;
}

return aI;
},

bsF:function(aI,aN,ax)
{
var ad=this;


if(aI.magicid==8||aI.magicid==9||aI.magicid==10)
{

aI=ad['doMagic'+aI.magicid+'ForList'](aI);
}




if(aI.magicid==10&&aI.otheruin==0&&aI.selfuin!=0)
{
aI.filtercontent='\u5bf9\u65b9\u4ece\u4f20\u9012\u74f6\u4e2d\u8054\u7cfb\u4e86\u60a8<br />';
aI.decodefiltercontent=aI.filtercontent;
if(aI.floorcontent)
{
aI.filtercontent+=aD.hashface(aI.floorcontent);
aI.nofacefiltercontent+=aI.floorcontent;
}
else
{
aI.filtercontent+=aD.hashface(aI.digest);
aI.nofacefiltercontent+=aI.digest;
}
}
else
{
if(aI.digest)
{
aI.filtercontent=aD.hashface(aI.digest);
aI.nofacefiltercontent=aI.digest;
}
else
{
aI.filtercontent=aD.hashface(aI.subject);
aI.nofacefiltercontent=aI.subject;
}
}

aI.decodefiltercontent=aI.filtercontent;
aI.decodedigest=aD.hashface(aI.digest);

aI.digest=aD.hashface(aI.digest);

return aI;
},

bpW:function(aI,aN,ax)
{
var ad=this,
aC=al.lib('PLP.Data').get('PLP.DCGeneral',
{
type:'attr'
});
vt=ad.afU();

if(typeof vt[aI['otheruin']]!=='undefined')
{
vt=vt[aI['otheruin']];


aI.filterremark=vt.remark;

if(aI.filterremark&&al.htmlDecode(aI.filterremark).length>4)
{
aI.filterremark=al.htmlEncode(al.htmlDecode(aI.filterremark).substr(0,3))+'...';
}
aI.filterbeachname=vt.beachname;

if(aI.filterbeachname&&al.htmlDecode(aI.filterbeachname).length>4)
{
aI.filterbeachname=al.htmlEncode(al.htmlDecode(aI.filterbeachname).substr(0,3))+'...';
}

var eq=aD.hashcity(aC.city);

if(!eq.city||eq.city=='\u5176\u4ed6\u5730\u533a')
{
eq='';
}
else
{
eq=eq.city;
}

aI.myloc=eq;
aI.info=aD.hashage(aI.sex,aI.age);

aI.i=aN;

aI.decodefiltercontent=aI.filtercontent;
aI.decodedigest=aD.hashface(aI.digest);






}

return aI;
},

cHa:function(aI,aN,ax)
{
var ad=this;

if(aI.search)
{
aI.search.content=ad.$.htmlDecode(aI.search.content).replace(/<span>/gi,'<span class="hit_keywords infotext">');

aI.decodefiltercontent=aI.decodefiltercontent.replace(new RegExp(ax.keyword,'gi'),'<span class="hit_keywords infotext">'+ax.keyword+'</span>');
aI.decodedigest=aI.search.content;
}

return aI;
},

cxY:function(aI)
{
if(aI['magicid']==10)
{
if(aI['digest']=="")
{
aI['unfound']=1;
}
else
{
aI['unfound']=0;
}
}

if(typeof aI['digest']=='undefined'||aI['digest']=='')
{
if(!aI['subject'])
{
aI['digestcontent']='\u60a8\u6536\u5230\u4e00\u4e2a\u65b0\u74f6\u5b50';
}
else
{
aI['digestcontent']=aI['subject'];
}

if(aI['magicid']!=10)
{
aI['unfound']=1;
}

aI['isnew']=true;
}
else
{
aI['digestcontent']=al.htmlDecode(aI['digest']);

if(aI['magicid']!=10)
{
aI['unfound']=0;
}
}

aI['digestcontent']=aD.hashface(aI['digestcontent']);


return aI;
},

afU:function()
{
var fD={};

fD.uininfo=aD.getMergeCache({
'select':'uininfo'
});

if(fD.uininfo.length>0)
{
var aOq={};
for(var i=0,l=fD.uininfo.length;i<l;i++)
{
al.extend(aOq,fD.uininfo[i]['returnval']);
}
fD=aOq
}
else
{
if(fD.uininfo[0])
{
fD=fD.uininfo[0]['returnval'];
}
}

return fD;
},





ceD:function(aw,bz,Rb)
{
var ad=this;

if(np['items'].length==0)
{
if(Rb!==true&&!window.gUnreadMsgUrl)
{

ad.bKv(aw,bz);
}
else
{
return np;
}
}
else
{
np.uininfo=ad.afU();

for(var i=0,l=np.items.length;i<l;i++)
{
np['items'][i].uininfo=np.uininfo[np['items'][i]['otheruin']];
}

if(Rb===true)
{
if(bz.oncomplete)
{
bz.oncomplete(null,np);
}
else
{
return np;
}
}
else
{
return np;
}
}
},

bKv:function(aw,bz)
{
var ad=this,
kD=aw.type,
vk="sysmsg"!=aw.type?bQ.FV:bQ.acK,
Co="sysmsg"!=aw.type?bX.FV:bX.acK;

if(aw.type=='allunread')
{
vk=bQ.FV;
Co=bX.cBI;
}
if(aw.type=='canadd')
{
Co=bX.cfZ;
}
if(aw.type=='collect')
{
vk=bQ.FV;
Co=bX.dzZ;
}
if(aw.type=='collected')
{
vk=bQ.FV;
Co=bX.cBQ;
}
if(aw.type=='garden')
{
vk=bQ.aYs;
Co=bX.aYs;
}
if(aw.type=="invite")
{
vk=bQ.FV;
Co=bX.dgt;
}

if(typeof sO[aw.type]!=='undefined')
{
aw.listtype=sO[aw.type];

if(aw.listtype==='bottle_drop')
{
aw.action='&action=status';
}
}


if(aw.page&&aw.page<0)
{
aw.page=0;
}


aD.xhrSend(
vk,
{
xhr:ad.SM,
aliasname:kD,
data:Co.replace(aw)
},
function(as)
{

if(!as||(as&&as.errmsg))
{
if(as&&as.errmsg)
{
ad.wm=as;
}
else
{
ad.wm={'errmsg':'cgi exception','errcode':'-1'};
}
}

if(as&&!as.errmsg)
{
ad.wm=null;
ad.bKq(as);
}


if(typeof ad.Qv[aw.type]!=='undefined')
{
ad.Qv[aw.type].call(ad,aw,bz,true);
}
}
);
},

dxP:function(aw,bz)
{
var ad=this,
kD='search',
vk=bQ.aOy;
Co=bX.aOy;

if(typeof sO[aw.listtype]!=='undefined')
{
aw.searchlisttype=sO[aw.listtype];
}


aD.xhrSend(
vk,
{
xhr:ad.SM,
aliasname:kD,
data:Co.replace(aw)
},
function(as)
{

if(!as||(as&&as.errmsg))
{
if(as&&as.errmsg)
{
ad.wm=as;
}
else
{
ad.wm={'errmsg':'cgi exception','errcode':'-1'};
}
}


if(as&&!as.errmsg)
{
ad.wm=null;
ad.bKq(as);
}


if(typeof ad.Qv[aw.type]!=='undefined')
{
ad.Qv[aw.type].call(ad,aw,bz,true);
}
}
);
},

bKp:function(aw,bz)
{
var ad=this,
kD=aw.type,
vk=bQ.aYs,
Co=bX.aYs;


aD.xhrSend(
vk,
{
xhr:ad.SM,
aliasname:kD,
data:Co.replace(aw)
},
function(as)
{

if(!as||(as&&as.errmsg))
{
if(as&&as.errmsg)
{
ad.wm=as;
}
else
{
ad.wm={'errmsg':'cgi exception','errcode':'-1'};
}
}

if(as&&!as.errmsg)
{
ad.wm=null;
ad.bKq(as);
}


if(typeof ad.Qv[aw.type]!=='undefined')
{
ad.Qv[aw.type].call(ad,aw,bz,true);
}
}
);
},

ddN:function(aw)
{
var ad=this;

if(typeof PB[aw.otheruin]==='undefined')
{
return true;
}

if(typeof IF[aw.type]==='undefined'||typeof IF[aw.type][aw.otheruin]==='undefined')
{
return false;
}

return true;
},

bBu:function(aw)
{
var ad=this;

if(typeof IF[aw.type]==='undefined')
{
IF[aw.type]={};
}

IF[aw.type][aw.otheruin]=true;
aD.clearCache();
},

dtO:function(aw)
{
var ad=this;

if(typeof jz[aw.type]==='undefined')
{
return true;
}

if(typeof IF[aw.type]==='undefined')
{
return false;
}

return true;
},

cvq:function(aP)
{
IF[aP]=true;


vg[sO[aP]]=null;
delete vg[sO[aP]];
iu['search']=null;
delete iu['search'];
},

dwg:function(aw)
{
var ad=this;

if(typeof vg[aw.type]==='undefined'||typeof vg[aw.type][aw.searchtype]==='undefined'||typeof vg[aw.type][aw.searchtype][decodeURIComponent(aw.keyword)]==='undefined')
{
return true;
}

if(typeof IF[aw.type]==='undefined')
{
return false;
}

return true;
},

dqQ:function(ax,aw,bz)
{
var ad=this,
cf=parseInt(aw.page,10),
AK=parseInt(aw.pagesize,10);

if(!ax||ax.length===0)
{

if(cf<0||AK<0||(cf-1)*AK>iu[aw.type].totle)
{

return 0;
}

if(iu[aw.type].page>-1&&iu[aw.type].page!=cf&&iu[aw.type].totle>0)
{

aw.fGetListFromCgi.call(ad,aw,bz);
return 1;
}
}
else
{
if(iu[aw.type].page!=cf&&ax.length!=AK)
{

aD.clearCache();
aw.fGetListFromCgi.call(ad,aw,bz);
return 1;
}
}

return 2;

},

dBR:function(ax,aw,bz)
{

var ad=this,
sX=sO[aw.listtype],
cf=parseInt(aw.page,10),
AK=parseInt(aw.pagesize,10);

if(!ax||ax.length===0)
{

if(cf<0||AK<0||(cf-1)*AK>iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].totle)
{

return 0;
}

if(iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].page>-1&&iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].page!=cf&&iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].totle>0)
{

aw.fGetListFromCgi.call(ad,aw,bz);
return 1;
}
}
else
{
if(iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].page!=cf&&ax.length!=AK)
{

ad.bKp(aw,bz);
return 1;
}
}

return 2;
},

dzH:function(ax,aw,bz)
{
var ad=this,
cf=parseInt(aw.page,10),
AK=parseInt(aw.pagesize,10);

if(!ax||ax.length===0)
{

if(cf<0||AK<0||(cf-1)*AK>iu['garden'][aw.otheruin].totle)
{

return 0;
}

if(iu['garden'][aw.otheruin].page>-1&&iu['garden'][aw.otheruin].page!=cf&&iu['garden'][aw.otheruin].totle>0)
{

aw.fGetListFromCgi.call(ad,aw,bz);
return 1;
}
}
else
{
if(iu['garden'][aw.otheruin].page!=cf&&ax.length!=AK)
{

ad.bKp(aw,bz);
return 1;
}
}

return 2;
},

dzM:function(aw,gZ)
{
var ad=this;


if(!iu['garden'][aw.otheruin])
{
iu['garden'][aw.otheruin]={
page:aw.page,
pagesize:aw.pagesize,
totle:gZ['items'].length,
listtype:aw.type
};
}

iu[aw.type][aw.otheruin]['items']=gZ['items'];

return iu[aw.type][aw.otheruin];
},

dzL:function(aw,gZ)
{
var ad=this;


if(!iu[aw.type])
{
iu[aw.type]={
page:aw.page,
pagesize:aw.pagesize,
totle:gZ['items'].length,
listtype:aw.type
};
}

iu[aw.type]['items']=gZ['items'];

return iu[aw.type];
},

dqG:function(aw,gZ)
{
var ad=this,
sX=sO[aw.listtype];

if(!iu['search'][sX])
{
iu['search'][sX]={};
}
if(!iu['search'][sX][aw.searchtype])
{
iu['search'][sX][aw.searchtype]={};
}
if(!iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)])
{
iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)]={};
}
if(!iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].totle)
{
iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].totle=iu['search'].totle;
}

iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].page=aw.page;
iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)].pagesize=aw.pagesize;

iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)]['items']=gZ['items'];
return iu['search'][sX][aw.searchtype][decodeURIComponent(aw.keyword)];
},

dHh:function(aw)
{
var ad=this;

if(aw.type=='garden')
{
aw.fIsDirty=ad.ddN;
aw.fCheckList=ad.dzH;
aw.fGetListFromCgi=ad.bKp;
aw.fDoCommonList=ad.dzM;
aw.fGetCache=function(aw){
return PB[aw.otheruin];
};
}
else if(aw.type=='search')
{
aw.fIsDirty=ad.dwg;
aw.fCheckList=ad.dBR;
aw.fGetListFromCgi=ad.dxP;
aw.fDoCommonList=ad.dqG;
aw.fGetCache=function(aw){
return vg[sO[aw.listtype]][aw.searchtype][decodeURIComponent(aw.keyword)];
};
}
else
{
aw.fIsDirty=ad.dtO;
aw.fCheckList=ad.dqQ;
aw.fGetListFromCgi=ad.bKv;
aw.fDoCommonList=ad.dzL;
aw.fGetCache=function(aw){
return jz[aw.type];
};
}

return aw;
},

acp:function(aw,bz,Rb)
{
var ad=this;

aw=ad.dHh.call(ad,aw);


if(Rb!==true&&aw.fIsDirty.call(ad,aw)===true)
{

aw.fGetListFromCgi.call(ad,aw,bz);
}
else
{
var bA=aw.fGetCache.call(ad,aw),
gZ=ad.cbE.call(ad,bA,aw);

gZ=aw.fDoCommonList.call(ad,aw,gZ);

if(ad.wm)
{
gZ=ad.wm;
ad.wm=null;
}


if(!gZ['items']||gZ['items'].length<aw.pagesize)
{
var cH=aw.fCheckList.call(ad,gZ['items'],aw,bz);
if(cH===0)
{
if(bz.onerror)
{
bz.onerror();
}
}
else if(cH===1)
{

}
else if(cH===2)
{
if(bz.oncomplete)
{
bz.oncomplete(null,gZ,Rb);
}
else
{
return gZ;
}
}
}
else
{
if(bz.oncomplete)
{
bz.oncomplete(null,gZ,Rb);
}
else
{
return gZ;
}
}
}
},

dqk:function(aw,bz)
{
var ad=this,
YL=aw.pagesize,
fD=[];


aw.page=0;
aw.pagesize=512;
aw.type='collect';
ad.acp.call(ad,aw,{
oncomplete:function(cC,aT)
{
for(var i=0,l=aT.items.length;i<l;i++)
{
if(aT.items[i].magicid!='11'&&aT.items[i]['uininfo'].updatetime==0)
{
fD.push(aT.items[i]);
}
if(fD.length===YL)
{
break;
}
}

if(fD.length===YL)
{
aT.items=fD;
if(bz.oncomplete)
{
bz.oncomplete(null,aT);
}
else
{
return aT;
}
}
else
{
aw.page=0;
aw.pagesize=15;
aw.type='canadd';
ad.acp.call(ad,aw,{
oncomplete:function(cC,aT)
{
for(var i=0,l=aT.items.length;i<l;i++)
{
if(aT.items[i].magicid!='11'&&aT.items[i]['uininfo'].updatetime==0)
{
fD.push(aT.items[i]);
}
if(fD.length===YL)
{
break;
}
}

aT.items=fD;
if(bz.oncomplete)
{
bz.oncomplete(null,aT);
}
else
{
return aT;
}
}
});
}
}
});
},

duP:function(aw,bz)
{
var ad=this;

if(!sz[aw.otheruin]||!sz[aw.otheruin]['gallery'])
{
aD.xhrSend(
bQ.bBQ,
{
data:bX.bBQ.replace(aw),
method:"get"
},
function(as)
{

var bo=ad.bpl();

if(as&&as.images)
{
for(var i=0,l=as.images.length;i<l;i++)
{
bo[i]={
icon:as.images[i]['icon150'],
bigicon:as.images[i]['icon600']
};
}


if(aw.otheruin==0)
{
ad.dhQ(as);
}
}

if(!sz[aw.otheruin])
{
sz[aw.otheruin]={'gallery':ad.bpl()};
}
sz[aw.otheruin]['gallery']=bo;
sz[aw.otheruin]['stepcnt']=as.stepcnt;

if(bz.oncomplete)
{
bz.oncomplete(aw,sz[aw.otheruin]);
}
}
);
}
else
{
if(bz.oncomplete)
{
bz.oncomplete(aw,sz[aw.otheruin]);
}
}
},

dhQ:function(as)
{

var ad=this,
aC=al.lib('PLP.Data').get('PLP.DCGeneral',
{
type:'attr'
});

if(aC.haspic==0&&as.images.length>0)
{

al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"firstpic",
cmd:"firstpic"
});
}
else if(aC.haspic==1&&as.images.length===0)
{

al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"lastpic",
cmd:"lastpic"
});
}
},

dHy:function(aw)
{
var ad=this;

if(!sz[aw.otheruin])
{
sz[aw.otheruin]={'gallery':ad.bpl()};
}

if(aw.result.images)
{
ad.czA();
for(var i=0,l=sz[aw.otheruin]['gallery'].length;i<l;i++)
{
if(!sz[aw.otheruin]['gallery'][i]||!sz[aw.otheruin]['gallery'][i]['icon'])
{
sz[aw.otheruin]['gallery'][i]={
icon:aw.result.images[0]['icon150'],
bigicon:aw.result.images[0]['icon600']
};
break;
}
}
}
},

czA:function()
{
var ad=this,
bKN=0;

for(var i=0,l=sz[0]['gallery'].length;i<l;i++)
{
if(!sz[0]['gallery'][i]||!sz[0]['gallery'][i]['icon'])
{
bKN++;
}
}

if(bKN===sz[0]['gallery'].length)
{

al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"firstpic",
cmd:"firstpic"
});
}
if(bKN===sz[0]['gallery'].length-1)
{

al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"lastpic",
cmd:"lastpic"
});
}
},

dwK:function(aw)
{
var ad=this;

if(!sz[aw.otheruin])
{
sz[aw.otheruin]={'gallery':ad.bpl()};
}

ad.czA();
for(var i=0,l=sz[aw.otheruin]['gallery'].length;i<l;i++)
{
if(sz[aw.otheruin]['gallery'][i]&&sz[aw.otheruin]['gallery'][i]['icon'])
{
if(sz[aw.otheruin]['gallery'][i]['icon']==aw.picurl)
{
sz[aw.otheruin]['gallery']=array_del(sz[aw.otheruin]['gallery'],i);
sz[aw.otheruin]['gallery'][cvC]={};
break;
}
}
}

if(ad.cEt()===false)
{
al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"initupdate"
});
}
},

dwG:function(aw)
{
var ad=this;

ad.bBu({
type:'garden',
otheruin:'0'
});
},

bpl:function()
{
var ad=this,
bo=[];

for(var i=0;i<=cvC;i++)
{
bo[i]={};
};

return bo;
},

bKq:function(as)
{
var ad=this;

if(as['uininfo'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfo']
});
}
if(as['uininfolist'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfolist']
});
}
},

czG:function(aw)
{
var ad=this;

if(typeof jz['drop']!=='undefined')
{
for(var i=0,l=jz['drop'].length;i<l;i++)
{

if(jz['drop'][i]['driftstat'])
{
jz['drop'][i]['driftstat']['unread']=false;
}
}
}
},

aXC:function(aw)
{
var ad=this;


ad.MA(function(ag,bS){

if(ag.length===0)
{
ad.Cy.call(ad,bS);
}
else
{
for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid'].replace(/sysmsg_\d*_/,"")==aw.mailid)
{

ad.Cy.call(ad,bS);
break;
}
}
}
});

ad.buK(aw);
},

ccQ:function(aw)
{
var ad=this;

for(var i=0,l=aw.params.items.length;i<l;i++)
{
ad.aXC.call(ad,aw.params.items[i]);
}
},

bvs:function(aw)
{
var ad=this;


ad.MA(function(ag,bS){

if(bS==='collect')
{
return true;
}

if(ag.length===0)
{
ad.Cy.call(ad,bS);
}
else
{
for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid'].replace(/sysmsg_\d*_/,"")==aw.mailid)
{
ad.Cy.call(ad,bS);
return true;
}
}
}
});
},

djy:function(aw)
{
var ad=this;

if(aw.mailid==-1)
{

PB[0]=[];
iu['garden'][0].totle=0;
}
else
{
for(var i=0,l=PB[0].length;i<l;i++)
{
if(PB[0][i]&&aw.mailid==PB[0][i].mailid)
{
PB[0]=array_del(PB[0],i);
iu['garden'][0].totle--;
break;
}
}
}

if(ad.cEt()===false)
{
al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"initupdate"
});
}
},

cEt:function()
{
var ad=this,
cDs=0;

if(!iu['garden']||!iu['garden'][0]||!sz[0]['gallery'])
{
return false;
}


for(var i=0,l=sz[0]['gallery'].length;i<l;i++)
{
if(sz[0]['gallery'][i]['icon'])
{
cDs++;
}
}

if(iu['garden'][0].totle==0&&cDs==0)
{
return false;
}
else
{
return true;
}
},

cxd:function(aw)
{
var ad=this;

for(var i=0,l=aw.mailids.length;i<l;i++)
{
aw.mailid=aw.mailids[i];
ad.aXC.call(ad,aw);
}
},

bYV:function(aw)
{
var ad=this;

if(!aw.mailid)
{
debug("_updateUnreadFromAllList");
}

ad.cwd(aw);
ad.buK(aw);
},

cwd:function(aw)
{
var ad=this;

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid']==aw.mailid&&ag[i]['unread']==true)
{
ag[i]['unread']=false;
return true;
}
}
});
},

dba:function(aw)
{
var ad=this;

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid']==aw.mailid)
{
ag[i]['unread']=true;
return true;
}
}
});
},

duT:function(aw)
{
var ad=this;

ad.bBu(aw);
},

dtD:function(aw)
{
var ad=this;
ad.cwd(aw);
for(var i=0,l=np['items'].length;i<l;i++)
{
if(np['items'][i]['mailid']==aw.mailid)
{
np['items']=array_del(np['items'],i);
var fu=aD.inarray(aw.mailid,window.oWebpushArray);
if(fu>-1)
{
window.oWebpushArray=array_del(window.oWebpushArray,fu);
}
return true;
}
}
},

buK:function(aw)
{

for(var i=0,l=np['items'].length;i<l;i++)
{
if(np['items'][i]['mailid']==aw.mailid)
{
np['items']=array_del(np['items'],i);
var fu=aD.inarray(aw.mailid,window.oWebpushArray);
if(fu>-1)
{
window.oWebpushArray=array_del(window.oWebpushArray,fu);
}

var ape=parseInt(al.lib('PLP.Data').get("PLP.DCGeneral",{type:"unread"}),10);
al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"unread",
value:ape-1
});

return true;
}
}

return false;
},

cwK:function(aw)
{
var ad=this;

if(ad.cye.call(ad,aw)===false)
{
return false;
}
if(ad.dBF.call(ad,aw)===false)
{
return false;
}
if(ad.dcK.call(ad,aw)===false)
{
return false;
}
if(ad.dke.call(ad,aw)===false)
{
return false;
}
if(ad.dpG.call(ad,aw)===false)
{
return false;
}


if(aw.mailid)
{
ad.Cy.call(ad,'search');

var cH=false;
ad.MA(function(ag,bS){

if(bS=='collect')
{
return true;
}



for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid']==aw.mailid)
{
var aI=ag[i];


aI.unread=false;
ag['timestamp']=parseInt(+new Date()/1000,10);
aI.time=ag['timestamp'];
aI.reply=true;
aI.subject='\u56de\u590d\u6f02\u6d41\u74f6';
aI.conttype=(aw.attr)?aw.attr.conttype:'';

aI.digest=al.htmlEncode(aw.content);
aI.digest=aD.hashface(aI.digest);


if(aw.action==="petty")
{
aI.digest=al.htmlEncode(aw.actContent);
aI.filtercontent=aI.digest;
}
if(aI.conttype>=5&&aI.conttype<=11)
{
aI.digest=al.htmlEncode(aw.penfriContent);
aI.filtercontent=aI.digest;
}
else if(aI.conttype>=12&&aI.conttype<14)
{
aI.digest=al.htmlEncode(aw.magicContent||aw.content);
aI.filtercontent=aI.digest;
aI.picker=aw.picker;
}
else if(aI.conttype==15)
{
aI.digest=al.htmlEncode(aw.addFavourContent);
aI.filtercontent=aI.digest;
}
else if(aI.conttype==16)
{
aI.digest=al.htmlEncode(aw.realcomment);
aI.filtercontent=aI.digest;
}
if(aw.image)
{


aI.digest=aw.picContent;
}


if(aw.action=="guessend")
{


var cFh={"1":"\u4e00","2":"\u4e8c","3":"\u4e09"},
aF=bE=al.lib('PLP.Data').get('PLP.DCGeneral',
{
type:'attr'
}).name;

var bD={};
al.lib('PLP.Data').get('PLP.DCMail',
{
type:'read',
mailid:aw.mailid
},
{
oncomplete:function(cC,ag)
{

bD=ag;
}
});

if(typeof aI.guesscnt==='undefined')
{
aI.guesscnt=bD.guesscnt;
}
aI.digest='\u7b2c'+cFh[aI.guesscnt]+'\u6b21\u731c\u6d4b';
aI.guesscnt++;


if(aw.guess==0)
{
aI.digest+='\uff0c\u6ca1\u6709\u731c\u4e2d';
}
if(aw.guess==1)
{
aI.digest+='\uff0c\u731c\u4e2d\u4e86';

al.extend(aI,aw.uininfo);
aI.guessstat="1";
}

if(aw.uininfo)
{
for(var o in aw.uininfo)
{
aI.otheruin=o;
}
}
}
else if(aw.action=="openend")
{
aI.guessstat="1";

aI.digest="\u6211\u516c\u5f00\u4e86\u8eab\u4efd";

if(aw.uininfo)
{
for(var o in aw.uininfo)
{
aI.otheruin=o;
}
}
}


aI=ad.bsF.call(ad,aI,0);


aI=ad.bpW.call(ad,aI,0);


ag=array_del(ag,i);
ag=array_insert(ag,aI,0);

cH=true;

return{'returnval':ag};
}
}

if(cH===false)
{

ad.Cy.call(ad,bS);
}
});
}
},

cye:function(aw)
{
var ad=this;


if(aw.magicid==11)
{
if(!aw.action)
{

}
else if(aw.action=="guess")
{
return false;
}
else if(aw.action=="open")
{
return false;
}
else if(aw.action=="openend")
{

return true;
}
else if(aw.action=="guessend")
{
if(aw.guess==1)
{

var _oItem=aw.returnval.uininfo;

for(var obj in _oItem)
{
_oItem=_oItem[obj];
break;
}
_oItem.mailid=aw.mailid;
_oItem.otheruin=_oItem.uin;

if(!jz['collect'])
{
jz['collect']=[_oItem];
}
else
{
jz['collect']=array_insert(jz['collect'],_oItem,0);
}
}
return true;
}
else if(!aw.action)
{
return false;
}
}
},

dBF:function(aw)
{
var ad=this;

if(aw.action&&(aw.action=='talk'||aw.action=='talkandbot'))
{

ad.dhK(aw);
return false;
}
else if(!aw.mailid&&aw.bottletype&&aw.bottletype.length>0)
{

if(aD.inarray(aw.magicid.toString(),aw.bottletype)>-1)
{
ad.bBu({
type:'garden',
otheruin:'0'
});
}
}

return true;
},

dhK:function(aw)
{
var ad=this;


var _oItem={};
_oItem.mailid=aw.sendmailid;
_oItem.time=parseInt(parseInt(aw.timestamp,10)/1000,10);
_oItem.digest=al.htmlDecode(aw.subject);
if(aw.action=='talkandbot')
{
_oItem.magicid=19;
}
else
{
_oItem.magicid=18;
}


_oItem=ad.cEm.call(ad,_oItem,0,_oItem,_oItem.time);


if(!PB[0])
{
PB[0]=[];
}
PB[0]=array_insert(PB[0],_oItem,0);
iu['garden'][0].totle++;
},

dcK:function(aw)
{
var ad=this;

if(aw.conttype==16)
{

ad.Cy.call(ad,'friend');
return false;
}

return true;
},

dke:function(aw)
{
var ad=this;

if(aw.conttype==15)
{
ad.bHd(aw);

}

return true;
},

dpG:function(aw)
{
var ad=this;

if(aw.action&&aw.action=='invite')
{
ad.Cy.call(ad,'friend');
return false;
}

return true;
},

cbX:function(aw)
{
var ad=this;

var cH=false;

ad.Cy.call(ad,'search');

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]['mailid']==aw.mailid)
{
ag[i]['mailid']=aw.replymailid;

if(cH===false&&ag[i]&&ag[i]['otheruin'])
{
cH=true;

var di={};
di[ag[i]['otheruin']]={};
di[ag[i]['otheruin']].link=aw.replymailid;

aD.mergeCache({
update:'uininfo',
set:di
});
}

return true;
}
}
});
},

cBB:function(aw)
{
var ad=this;

var fD={};

fD.uininfo=aD.getMergeCache({
'select':'uininfo'
});

if(fD.uininfo.length>0)
{
for(var i=0,l=fD.uininfo.length;i<l;i++)
{
if(typeof fD.uininfo[i]['returnval'][aw.uin]!=='undefined')
{
fD=fD.uininfo[i]['returnval'][aw.uin];
break;
}
}
}

return fD;
},

dKv:function(aw,bu)
{
var ad=this;

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]['mailid']==aw.mailid)
{
ag[i]['replyret']=2;

return true;
}
}
});
},


czV:function(cv,bu)
{
var ad=this,
aQO=aD.getMergeCache({
'select':'uininfo'
}),
atU=(aQO&&aQO[0]&&aQO[0].returnval)||{},
pS=cv.uinList,
asD=[],
gZ={},
cd;
for(var i=0,_nLen=pS.length;i<_nLen;i++)
{
cd=pS[i];

if(typeof(atU[cd]&&atU[cd].point)!="undefined")
{
gZ[cd]={};
gZ[cd]=atU[cd];
}
else
{
asD.push(cd);
}
}

if(asD.length===0)
{
al.call(ad,bu,[gZ]);
}
else
{
aD.xhrSend(
bQ.aXn,
{
data:bX.aXn.replace({uinlist:asD}),
method:"POST"
},
function(as)
{
if(as)
{

aD.mergeCache({
update:'uininfo',
set:as
});
var atU=aD.getMergeCache({
'select':'uininfo'
})[0].returnval;
for(var i=0,_nLen=asD.length;i<_nLen;i++)
{
cd=asD[i];
as[cd]&&(gZ[cd]={})&&(gZ[cd]=atU[cd]);
}

}
al.call(ad,bu,[gZ]);
}
);
}
},
eqt:function(cv,bu)
{
var ad=this;
aD.xhrSend(
bQ.FV,
{
data:bX.eEc.replace(cv),
method:"GET"
},
function(as)
{
if(as)
{
al.call(ad,bu,[gZ]);
}
}
);
},

cBC:function(aw)
{
var ad=this;

var fD={};

fD.uininfo=aD.getMergeCache({
'select':'uininfo'
});

if(fD.uininfo.length>0)
{

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]['mailid'].replace(/sysmsg_\d*_/,"")==aw.mailid&&ag[i]&&ag[i]['otheruin'])
{
for(var j=0,len=fD.uininfo.length;j<len;j++)
{
if(ag[i]&&fD.uininfo[j]['returnval'][ag[i]['otheruin']])
{
fD.uininfo=fD.uininfo[j]['returnval'][ag[i]['otheruin']];
return fD;
}
}
}
}
});
}

return fD;
},

bHd:function(aw)
{
var ad=this;

if(!jz['collect']||(jz['collect']&&jz['collect'].length===0))
{
jz['collect']=[aw];
if(!iu['collect']['page'])
{
iu['collect']={
listtype:"bottle_collect",
page:"0",
pagesize:"512",
totle:"1"
}
}
}
else
{

for(var i=0,l=jz['collect'].length;i<l;i++)
{
if(jz['collect'][i]['otheruin']==aw.otheruin)
{
return false;
}
}
var vt=ad.afU();
if(typeof vt[aw.otheruin]!=='undefined')
{
var jZ=vt[aw.otheruin];
if(jZ.curstatus=="0")
{
jZ.curstatus="1";
jZ.oldstatus="0";
}
else if(jZ.curstatus=="2")
{
jZ.curstatus="3";
jZ.oldstatus="2";
}
aw.uininfo=vt[aw.otheruin];
jz['collect']=array_insert(jz['collect'],aw,0);
}
}


ad.Cy.call(ad,'canadd');
},

cwL:function(aw)
{
var ad=this;

ad.Cy.call(ad,'collect');
ad.Cy.call(ad,'canadd');
ad.Cy.call(ad,'collected');
},

cnI:function(aw)
{
var ad=this;

ad.MA(function(ag,bS){
if(bS=='collect')
{
return true;
}

ad.Cy.call(ad,bS);
})
},

cDq:function(aw)
{
var ad=this,
as=aw.item;




var _oItem={};

_oItem.listtype='bottle_receiveex';
_oItem.magicid=as.magicid;
_oItem.mailid=as.mailid;
_oItem.time=parseInt(+new Date()/1000,10);


var eW=aD.millTimeFormator(_oItem.time,as.timestamp);
_oItem.stime=eW;
_oItem.ctime=aD.dateBreaker(eW);

_oItem.unread=true;
_oItem.pick=true;
_oItem.qqicon=as.qqicon;
_oItem.beachname=as.beachname;
_oItem.otheruin=as.otheruin;
_oItem.reply=false;
_oItem.interest=as.interest;
_oItem.curstatus='0';
_oItem.oldstatus='0';
_oItem.remark='';
_oItem.sex='';
_oItem.age='';
_oItem.loc='';
_oItem.isnewver=as.version;
_oItem.posteruin=as.posteruin;
if(!as.subject)
{

var cm=as.uininfo&&as.uininfo[as.otheruin],
Hc=cm&&cm.loc;

if(Hc)
{
_oItem.subject=["\u6536\u5230\u6765\u81ea",Hc,"\u7684",aJ.get('allmagicidname').replace({magicid:as.magicid})].join("");
}
else
{
_oItem.subject='\u6536\u5230\u4e00\u4e2a\u6f02\u6d41\u74f6';
}


}
else
{
_oItem.subject=as.subject;
}
_oItem.digest='';
_oItem.decodedigest='';
_oItem.decodefiltercontent=_oItem.subject;
_oItem.isnew=true;

aw.item=_oItem;

if(np['items'].length==0)
{
np['items']=[aw.item];
}
else
{
np['items']=array_insert(np['items'],aw.item,0);
}
window.oWebpushArray.push(as.mailid);


ad.cEY.call(ad,aw);
},

cEY:function(aw)
{
var ad=this;






if(typeof jz['friend']==='undefined'||jz['friend'].length==0)
{
jz['friend']=[aw.item];
}
else
{
jz['friend']=array_insert(jz['friend'],aw.item,0);
}
},

cqL:function(aw)
{
var ad=this,
gZ={};

ad.MA(function(ag,bS){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['otheruin']==aw.otheruin)
{
gZ=ag[i];
gZ.uininfo=ad.afU();
gZ.uininfo=gZ.uininfo[ag[i]['otheruin']];
return gZ;
}
}
})

return gZ;
},

cvR:function(aw)
{
var ad=this,
gZ={};

return ad.MA(function(ag){

for(var i=0,l=ag.length;i<l;i++)
{

if(ag[i]&&ag[i]['mailid'].replace(/sysmsg_\d*_/,"")==aw.mailid)
{
gZ=ag[i];
gZ.uininfo=ad.afU();
gZ.uininfo=gZ.uininfo[ag[i]['otheruin']];
return gZ;
}
}
});
},

cbE:function(ax,aw)
{
var ad=this,
fD={'items':[]};

fD.uininfo=ad.afU();
if(ax)
{
for(var i=aw.page*aw.pagesize,l=aw.pagesize*(aw.page+1);i<l&&i<ax.length;i++)
{
if(typeof ax[i]!=='undefined')
{
fD['items'].push(ax[i]);

fD['items'][fD['items'].length-1].uininfo=fD.uininfo[ax[i]['otheruin']];
}
}
}

return fD;
},



MA:function(bu)
{
var cH=undefined;
for(var obj in jz)
{
cH=bu(jz[obj],obj);
if(cH===false)
{
cH=undefined;
break;
}
if(cH===true)
{
continue;
}
if(typeof cH!=='undefined')
{
if(typeof cH.returnval!=='undefined')
{
jz[obj]=cH.returnval;
}
else
{
return cH;
}
}
}

for(var listtype in vg)
{
for(var searchtype in vg[listtype])
{
for(var keyword in vg[listtype][searchtype])
{
cH=bu(vg[listtype][searchtype][keyword],listtype);
if(cH===false)
{
cH=undefined;
break;
}
if(cH===true)
{
continue;
}
if(typeof cH!=='undefined')
{
if(typeof cH.returnval!=='undefined')
{
vg[listtype][searchtype][keyword]=cH.returnval;
}
else
{
return cH;
}
}
}
}
}
},


init_:function(ap)
{
var ad=this;
ad.aj=ap||{},

ad.SM=al.ajaxSetting().ongetxhr();

ad.Qv={
'allunread':ad.ceD,
'sysmsg':ad.acp,
'friend':ad.acp,
'drop':ad.acp,
'collect':ad.acp,
'collected':ad.acp,
'canadd':ad.acp,
'mood':ad.acp,
'garden':ad.acp,
'invite':ad.dqk,
'dropunread':ad.czG,
'delmail':ad.aXC,
'delmore':ad.ccQ,
'delmsg':ad.bvs,
'delsay':ad.djy,
'markdel':ad.cxd,
'unreadmail':ad.bYV,
'send':ad.cwK,
'sendreplymailid':ad.cbX,
'uininfo':ad.cBB,
'mailuininfo':ad.cBC,
'mailinfo':ad.cqL,
'mailrealtime':ad.bvs,
'listinfo':ad.cvR,
'addfavour':ad.bHd,
'delfavour':ad.cwL,
'realtime':ad.cnI,
'pick':ad.cDq,
'search':ad.acp,
'realuininfo':ad.czV,
'maildel':ad.dKv,
'weaktipunpdateunread':ad.dtD,
"setunreadtoalllist":ad.dba,
'updategarden':ad.duT,
'gallery':ad.duP,
'uploadpic':ad.dHy,
'delpic':ad.dwK,
'synbottle':ad.dwG,
'sortfavour':ad.dzh,
'':null
},

ad.superEx_(av,"init_",[ap]);
}

}
);
}
);


}


);





$.package(

"bottle/ctrl/dcgeneral.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;


















QMWin.createCtrl(

"PLP.DCGeneral",


{},


function(av)
{


var
Cc='PLP.DCMail',
bRN='PLP.DCList',
ae=window.getTop&&getTop(),
bQ=
{
ayj:"/cgi-bin/bottle_setting",
afE:"/cgi-bin/bottle_setting",
azR:"/cgi-bin/bottle_setting",

bNY:"/cgi-bin/bottle_opr",
aCd:"/cgi-bin/bottle_opr",
azx:"/cgi-bin/bottle_opr",
bCY:"/cgi-bin/bottle_opr",
aCv:"/cgi-bin/bottle_opr",
bPX:"/cgi-bin/mail_mgr",
bzS:"/cgi-bin/bottle_send",
bDJ:"/cgi-bin/bottle_pick",
aAI:"/cgi-bin/bottle_opr",
Sr:"/cgi-bin/bottle_opr",
aAH:"/cgi-bin/bottle_setting",
aDj:"/cgi-bin/bottle_setting",
aAR:"/cgi-bin/bottle_opr",
aAe:"/cgi-bin/bottle_opr",
azV:"/cgi-bin/bottle_opr",
aCs:"/cgi-bin/bottle_opr",
ayP:"/cgi-bin/bottle_opr",
aQb:"/cgi-bin/bottle_setting",
aXS:"/cgi-bin/bottle_opr",
aTP:"/cgi-bin/bottle_opr",
baV:"/cgi-bin/bottle_opr",
aUD:"/cgi-bin/bottle_opr",
baT:"/cgi-bin/bottle_setting",
baa:"/cgi-bin/bottle_opr",
aTU:"/cgi-bin/bottle_setting",
aZB:"/cgi-bin/bottle_setting",
aWx:'/cgi-bin/bottle_opr',
aPp:"/cgi-bin/bottle_setting",
aUs:"/cgi-bin/bottle_opr"
},
bX=
{

ayj:al.T("&fun=submit&mode=$open$&t=bottle_send"),
afE:al.T("&name=$name$&mode=setname&t=bottle_send&sex=$sex$&age=$age$&city=$city$&showicon=$showicon$"),
ccj:al.T("mode=setskin&skin=$skin$&t=bottle_send"),
bSx:al.T("&mode=getname&ef=js&t=bottle_send"),
azR:al.T("t=bottle_send&mode=setshowicon&showicon=$showicon$"),

czL:al.T("action=$action$&content=$content$&$attr$"),
bVT:al.T("mailid=$mailid$&sendcount=$sendcount$&content=$content$&remarkB=$remarkB$&qqicon=$icon$&bottle_type=$type$&image=$image$&uin=$uin$&action=$action$&action2=$action2$&$attr$&replyret=$replyret$"),

aeQ:al.T("mailid=$mailid$&cmd=$action$&copymailid=$copymailid$&posteruin=$posteruin$&action=$dropaction$"),
azx:al.T("mailid=$mailid$&cmd=$cmd$&remark=$remark$"),
bUR:al.T("mailid=$mailid$&cmd=$cmd$"),
bOQ:al.T("mailid=$mailid$&reporttype=0&folderid=11&s=readmail_spam&Fun=Del&srcfolderid=11&isspam=true&mailaction=mail_spam&t=bottle_send"),
aIS:al.T("mailid=$mailid$&action=mark"),
bVA:al.T("t=bottle_send&picking=$picking$&selfsex=$selfsex$"),
cCd:al.T("t=bottle_send&picking=$picking$&action=contact&eage=$eage$&esex=$esex$&contacttype=$contacttype$&selfsex=$selfsex$"),
bAA:al.T("t=bottle_send&picking=$picking$&action=loc&region=$region$&address=$address$&latlng=$lat$&same=$same$&selfcity=$selfcity$&searchaddress=$searchaddress$&selfsex=$selfsex$"),
aAI:al.T("cmd=$cmd$&mailid=$mailid$&remark=$remark$"),
aCv:al.T("t=bottle_opr&cmd=guide&num=10"),
Sr:al.T("t=bottle_opr&cmd=$cmd$"),
bNU:al.T("t=bottle_opr&cmd=$cmd$"),
bVQ:al.T("t=bottle_opr&cmd=getwb"),
bKj:al.T("t=bottle_opr&cmd=0&$cipher$"),
bNX:al.T("t=bottle_opr&cmd=verify"),
aCd:al.T("t=bottle_opr&cmd=close&copymailid=$copymailid$&posteruin=$posteruin$"),
aAH:al.T("mode=setunannoy&settype=$settype$"),
aDj:al.T("mode=setlonely&settype=$settype$"),
aAR:al.T("t=bottle_opr&cmd=usepoint&point=$point$"),
azV:al.T("t=bottle_opr&cmd=$cmd$&mailid=$mailid$&uin=$uin$"),
aCs:al.T("t=bottle_opr&cmd=$cmd$&mailid=$mailid$"),
ayP:al.T("t=bottle_opr&time=$time$&cmd=delsession&mailid=$mailid$&msgid=$msgid$"),
aQb:al.T("mode=openir"),
aAe:al.TE([
"t=bottle_opr&cmd=markdel",
"$@$for($items$)$@$",
"&mailid=$mailid$",
"$@$endfor$@$"
]),
aXS:al.T("t=bottle_opr&cmd=getbottle"),
aTP:al.T("cmd=getquestion"),
baV:al.T("cmd=neglect&mailid=$mailid$&otheruin=$otheruin$&qtype=$qtype$&qlevel=$qlevel$"),
aUD:al.T("cmd=stepgarden&mailid=$mailid$&otheruin=$otheruin$"),
baT:al.TE([
"mode=importgarden&t=bottle_send",
"$@$for($bottletype$)$@$",
"&bottype=$_this_$",
"$@$endfor$@$",
]),
aPp:al.TE([
"&mode=setgarden&t=bottle_send",
"$@$for($bottletype$)$@$",
"&bottype=$_this_$",
"$@$endfor$@$",
]),
baa:al.TE(["cmd=deltalk&mailid=$mailid$"]),
aTU:al.TE(["mode=picupload&picurl=$picurl$&t=bottle_send&picfrom=$picfrom$"]),
aZB:al.TE(["mode=delpic&picurl=$picurl$"]),
aWx:al.TE(["cmd=initupdate"]),
aUs:al.TE(["cmd=getskinlist"])
},

IJ={},
aD=al.lib('PLP.Util'),

EY=[],


byi=[],



afb=0,





iA={
first:false,
transfer:0,

unread:0,
friendUnread:0,
receiveUnread:0,
totle:0,
normalBottle:0,
picking:0,
iropen:0,
tip:{},
historybottle:'',
unreadsyscnt:0,
sysmsgunreadcount:0,
collectedcount:0,
newcollectedcount:0,
wbStatus:false







},


aAE='\u5f53\u4f60\u548c\u4f60\u7684\u604b\u4eba\u5728\u4e00\u8d77\u7684\u65f6\u5019\u4f60\u4f1a\u60f3\u5176\u4ed6\u5f02\u6027\u5417\uff1f',


bdc=[],


baU=[],


aTq='\u5f53\u4f60\u548c\u4f60\u7684\u604b\u4eba\u5728\u4e00\u8d77\u7684\u65f6\u5019\u4f60\u4f1a\u60f3\u5176\u4ed6\u5f02\u6027\u5417\uff1f',


Pv={
"13":[],
"14":[],
"15":[]
},

aSY=10,


Tt='',


adL=[{'mbtitle':'\u5fae\u535a\u6539\u53d8\u4e86\u4ec0\u4e48','mbcontent':'\u5403\u996d\uff0c\u5fae\u535a\u5148\u5403\uff1b\u5165\u5395\uff0c\u5fae\u535a\u540c\u5f80\uff1b\u7761\u89c9\uff0c\u5fae\u535a\u5171\u7720\uff1b\u5730\u94c1\uff0c\u5fae\u535a\u5e76\u6324\u3002\u6709\u4eba\u5f62\u5bb9\uff0c\u6bcf\u4e00\u6761\u5fae\u535a\u90fd\u662f\u5728"\u5411\u5168\u4e16\u754c\u558a\u8bdd"\uff0c\u8fd9140\u4e2a\u5b57\u5230\u5e95\u6709\u591a\u5927\u7684\u529b\u91cf\uff0c\u5b83\u600e\u6837\u6539\u53d8\u4f60\u7684\u751f\u6d3b\uff1f','mblink':'http://t.qq.com/k/\u5fae\u535a\u6539\u53d8\u4e86\u4ec0\u4e48','mbfiltercontent':'\u5403\u996d\uff0c\u5fae\u535a\u5148\u5403\uff1b\u5165\u5395\uff0c\u5fae\u535a\u540c\u5f80\uff1b\u7761\u89c9\uff0c\u5fae\u535a\u5171\u7720\uff1b\u5730\u94c1\uff0c\u5fae\u535a\u5e76\u6324\u3002\u6709\u4eba\u5f62\u5bb9\uff0c\u6bcf\u4e00\u6761\u5fae\u535a\u90fd\u662f\u5728"\u5411\u5168\u4e16\u754c\u558a\u8bdd"\uff0c\u8fd9140\u4e2a\u5b57...','mbfiltertitle':'\u5fae\u535a\u6539\u53d8\u4e86\u4ec0\u4e48'}],

bHm=9,


aC={},


Du={},


amk={},


vK={},

cr=al.lib('PLP.ModelList'),














uV=[],

array_del=function(lT,n)
{



if(n<0)
{
return lT;
}
else
{
return lT.slice(0,n).concat(lT.slice(n+1,lT.length));
}






},


array_insert=function(lT,ic,_nIdx)
{
var arrTemp=lT;
if(_nIdx>arrTemp.length)
{
_nIdx=arrTemp.length;
}
if(_nIdx<-arrTemp.length)
{
_nIdx=0;
}
if(_nIdx<0)
{
_nIdx=arrTemp.length+_nIdx;
}
for(var ii=arrTemp.length;ii>_nIdx;ii--)
{
arrTemp[ii]=arrTemp[ii-1];
}
arrTemp[_nIdx]=ic;
return arrTemp;
};

return(
{


opt_:function(ar,eo)
{
var ad=this;

if(eo==ay)
{
if(iA[ar]!=ay)
{
return iA[ar];
}
if(aC[ar]!=ay)
{
return aC[ar];
}
return{};
}
else if(iA[ar]==ay)
{
aC[ar]=eo;
ad.fireEvent_("change",[ar,eo]);
}
else if(iA[ar]!=ay)
{
iA[ar]=eo;

ar==='historybottle'&&iA[ar]!==''&&ad.aVr(iA[ar]);


ar==="sysmsgunreadcount"&&(aC[ar]=eo);
ar==="collectedcount"&&(aC[ar]=eo);
ar==="newcollectedcount"&&(aC[ar]=eo);
ad.fireEvent_("change",[ar,eo]);
}

if(ar=='unread')
{
if(isNaN(eo))
{
eo=0;
}
ae&&$.call(ae.switchFolder,["folder_11"]);
ae&&$.call(ae.setFolderUnread,['folder_11',Math.max(parseInt(eo,10),window.oWebpushArray.length)]);
}
return ad;
},



bLt:function(at,fZ)
{
aD.xhrSend(
bQ.aCd,
{
data:bX.aCd.replace(
{
posteruin:at.posteruin,
copymailid:at.copymailid
}
),
method:"POST"
}
);
},





bFu:function(PK,bz)
{
var ad=this,
acx=aC.plpopen;

if(acx==PK)
{
al.call(ad,bz,[acx]);
}
else
{
aD.xhrSend(
bQ.ayj,
{
data:bX.ayj.replace(
{
open:PK?'plpopen':'plpclose'
}
),
method:"POST"
},
function(as)
{
if(as.plpopen!=ay)
{

aC['plpopen']=as.plpopen;
}




al.call(ad,bz,[as]);
}
);
}
return ad;
},







bIW:function(aH,bCS,aCz,awj,cYW,bz)
{

var ad=this,
HL=ad.aj.dc.getInst_(Cc);




aD.xhrSend(
bQ.bNY,
{
data:bX.aeQ.replace({


action:awj?'del':'drop',
dropaction:cYW,
posteruin:aCz,
copymailid:bCS,
mailid:aH
}),
method:'POST'
},
function(as)
{
al.call(ad,bz,[as]);
}
);

HL.delCacheMail(aH);

cr.postData({
'type':'delmail',
'mailid':aH
});
},






bVe:function(at,fK)
{
var ad=this,
HL=ad.aj.dc.getInst_(Cc);




aD.xhrSend(
bQ.bCY,
{
data:bX.bUR.replace({
cmd:"uncollect",
posteruin:at.posteruin,
version:at.version,
mailid:at.mailid
}),
method:'POST'
},
function(as)
{


HL.delCacheMail(at.mailid);




var vt={};
at.control=-1;
vt=ad.aWZ(at);

if(as.uininfo)
{
aD.mergeCache({
update:'uininfo',
set:as.uininfo
});
}


var aw=at;
aw.type='delfavour';
cr.postData(aw);


al.call(ad,fK,[as]);
}
);
},






Pc:function(at,fK)
{
var ad=this;




aD.xhrSend(
bQ.azx,
{
data:bX.azx.replace({
cmd:'collect',
remark:encodeURIComponent(at.remark),
posteruin:at.posteruin,
version:at.version,
mailid:at.mailid
}),
method:'POST'
},
function(as)
{



var vt={};
at.control=1;
vt=ad.aWZ(at);

if(as.uininfo)
{
aD.mergeCache({
update:'uininfo',
set:as.uininfo
});
}


var aw=at;
aw.type='addfavour';
cr.postData(aw);

al.call(ad,fK,[as]);
}
);
},




aWZ:function(at)
{
var mr=['uininfo'];

var _oItem=null;

for(var i=0,l=mr.length;i<l;i++)
{
var ag=aD.getMergeCache({
'select':mr[i]
});

for(var j=0,len=ag.length;j<len;j++)
{
al.each(ag[j]['returnval'],function(aI,aN)
{
if(aI&&aI.uin==at.otheruin)
{
_oItem=aI;
return false;
}
});
}
}

if(_oItem)
{
_oItem.mailcnt=parseInt(_oItem.mailcnt,10)+at.control;

if(at.control>0)
{
if(_oItem.curstatus==0)
{
_oItem.curstatus=1;
}
if(_oItem.curstatus==2)
{
_oItem.curstatus=3;
}

_oItem.link=at.mailid;
_oItem.remark=al.htmlEncode(at.remark);
}
if(at.control<0)
{
if(_oItem.curstatus==3)
{
_oItem.curstatus=2;
}
if(_oItem.curstatus==1)
{
_oItem.curstatus=0;
}
_oItem.remark='';
}

var di={};
di[_oItem.uin]=_oItem;

aD.mergeCache({
update:'uininfo',
set:di
});

return di;
}
},








byL:function(at,bz)
{
var ad=this,
HL=ad.aj.dc.getInst_(Cc);



HL.delCacheMail(at.mailid);

cr.postData({
'type':'delmail',
'mailid':at.mailid
});


aD.xhrSend(
bQ.bPX,
{
method:'POST',
data:bX.bOQ.replace({
posteruin:at.posteruin,
version:at.version,
mailid:at.mailid
})
},
function(as)
{
al.call(ad,bz,[as]);
}
);


},








bIB:function(hz,bz)
{
var ad=this,
aP='name';

aD.xhrSend(
bQ.afE,
{
data:bX.afE.replace({
name:encodeURIComponent(hz.name),
showicon:hz.showicon,
age:hz.age,
sex:hz.sex,
city:hz.city
}),
method:'POST'
},
function(as)
{
if(as)
{

aC['weather']=as.weather;
al.call(ad,bz,[as]);
}
}
);






al.extend(aC,{
name:ad.$.htmlEncode(hz.name),
showicon:hz.showicon,
age:hz.age,
sex:hz.sex,
city:hz.city
});
return ad;
},

cHn:function(hz,bz)
{
var ad=this;
aD.xhrSend(
bQ.afE,
{
data:bX.ccj.replace({skin:hz.skin}),
method:"POST"
},
function(as)
{
if(as&&as.point!==ay)
{
aC["point"]=parseInt(as.point,10)
}
}

)
},

cKv:function(az,bz)
{
var ad=this;
aD.xhrSend(
bQ.aUD,
{
data:bX.aUD.replace(az),
method:"POST"
}
);

var di={};
di[az.otheruin]={};
di[az.otheruin].steptime=parseInt((+new Date())/1000,10);
aD.mergeCache({
update:'uininfo',
set:di
});
},








bHE:function(afG,bz)
{
var ad=this,
aP='showicon';
if(afG==aC[aP])
{
return al.call(ad,bz,[{showicon:afG}]);
}

aD.xhrSend(
bQ.azR,
{
data:bX.azR.replace({
showicon:afG?'true':'false'
}),
method:'POST'
},
function(as)
{
if(as.showicon!=ay)
{
aC[aP]=as.showicon;

}
al.call(ad,bz,[as]);
}
);





return ad;
},








bEv:function(at,bz)
{
var ad=this;

aD.xhrSend(
bQ.aAI,
{
data:bX.aAI.replace({
cmd:"setremark",
remark:encodeURIComponent(at.remark)||'',
mailid:at.mailid||''
}),
method:'POST'
},
function(as)
{


cd=cr.getData({
'type':'mailuininfo',
'mailid':at.mailid
});
ad.bFO(at,cd.uininfo.uin);
ad.aj.dc.getInst_(Cc).dirty(at.mailid);

al.call(ad,bz,[as]);
}
);



return ad;
},


bLO:function(at)
{
var ad=this,
UY=at.settype,
acD,Jf;
aD.xhrSend(
bQ.aAH,
{
data:bX.aAH.replace({
settype:at.settype
}),
method:"POST"
}
);
switch(UY)
{
case 0:
acD=Jf=true;
break;
case 1:
acD=false;
Jf=true;
break;
case 2:
acD=true;
Jf=false;
break;
case 3:
acD=Jf=false;
break;
}









aC['recevon']=acD;
aC['plpopen']=Jf;
},

bEn:function(at)
{
var ad=this;
aD.xhrSend(
bQ.aDj,
{
data:bX.aDj.replace({
settype:at.settype
}),
method:"POST"
}
);








aC['lonely']=(at.settype==1?true:false);
},

bVz:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.aAR,
{
data:bX.aAR.replace({
point:at.point
}),
method:"POST"
},
function(as)
{
al.call(ad,bu,[as]);
}
);
},

bDH:function(at,bu)
{
var ad=this,
HL=ad.aj.dc.getInst_(Cc),
ND=at.items,
_nLen=ND.length,
aU;
aD.xhrSend(
bQ.aAe,
{
data:bX.aAe.replace({
items:ND
}),
method:"POST"
},
function(as)
{
al.call(ad,bu,[as]);
}
);

cr.postData({
'type':'delmore',
'params':at
});
},

bDu:function(at,bu)
{
var ad=this,
aU=at.mailid,
HL=ad.aj.dc.getInst_(Cc);

aD.xhrSend(
bQ.aCs,
{
data:bX.aCs.replace({
cmd:at.cmd,
mailid:aU,
version:at.version,
posteruin:at.posteruin
}),
method:"POST"
},
function(as)
{

al.call(ad,bu,[as]);
}
);


HL.delCacheMail(aU);
cr.postData({
'type':'delmail',
'cmd':at.cmd,
'mailid':aU
});
},

bSF:function(at,bu)
{
var ad=this,
aU=at.mailid;
aD.xhrSend(
bQ.ayP,
{
data:bX.ayP.replace({
mailid:aU,
msgid:at.msgid,
time:at.time,
posteruin:at.posteruin,
version:at.version
}),
method:"POST"
},
function(as)
{
al.call(ad,bu,[as]);
}
);

ad.aj.dc.getInst_(Cc).dirty(at.mailid);

cr.postData({
'type':'delmsg',
'msgid':at.msgid,
'mailid':aU
});
},

coR:function(at,bu)
{
var ad=this;

aD.xhrSend(
bQ.aQb,
{
data:bX.aQb.replace({
}),
method:"POST"
},
function(as)
{

}
);
},
cdW:function(at,bu)
{
var ad=this;
cr.postData({
type:"weaktipunpdateunread",
mailid:at.mailid
});
ad.post(
{
type:"unread",
value:parseInt(at.value,10)
});
},

cch:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.baT,
{
data:bX.baT.replace(at),
method:"POST"
},
function(as)
{
cr.postData({
'type':'synbottle'
});

al.call(ad,bu,[as]);
}
);
},

cxc:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.baa,
{
data:bX.baa.replace(at),
method:"POST"
},
function(as)
{
}
);
cr.postData({
'type':'delsay',
'mailid':at.mailid 
});
},

csM:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.aZB,
{
data:bX.aZB.replace(at),
method:"POST"
},
function(as)
{
cr.postData({
'type':'delpic',
'picurl':at.picurl,
'otheruin':0
});
}
);
},

cHH:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.aWx,
{
data:bX.aWx.replace(at),
method:"POST"
},
function(as)
{
}
);
},

cwh:function(at,bu)
{
var ad=this;

aD.xhrSend(
bQ.aTU,
{
data:bX.aTU.replace(at),
method:"post"
},
function(as)
{
cr.postData({
'type':'uploadpic',
'otheruin':0,
'result':as
});
if(typeof as.upoint!=="undefined")
{
ad.aLH(as.upoint);
ad.Mc(as.upoint);
}
al.call(ad,bu,[as]);
}
);
},
cfO:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.aPp,
{
data:bX.aPp.replace(at),
method:"post"
},
function(as)
{
al.call(ad,bu,[as]);
}
);
},
cGg:function(at,bu)
{
var ad=this;
ad.gardenupdfriends=at.value;
},
cir:function(at,bu)
{
return this.gardenupdfriends||[];
},
cFX:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.baV,
{
data:bX.baV.replace({
mailid:at.mailid,
qlevel:at.qlevel,
qtype:at.qtype,
otheruin:at.otheruin
}),
method:"post"
},
function(as)
{
al.call(ad,bu,[as]);

}
);
},

bCh:function(at,bu)
{
var ad=this;
aD.xhrSend(
bQ.azV,
{
data:bX.azV.replace({
cmd:at.cmd,
uin:at.uin,
mailid:at.mailid
}),
method:"POST"
},
function(as)
{
al.call(ad,bu,[as]);
}
);
},

bWc:function(at,bu)
{
var kE=ad.opt_("unread");

ad.opt_("unread",parseInt(kE,10)+1);

cr.postData({
'type':'mailrealtime',
'mailid':at.mailid
});
},



bFO:function(at,cd)
{
var mr=['uininfo'];

var _oItem=null;

for(var i=0,l=mr.length;i<l;i++)
{
var ag=aD.getMergeCache({
'select':mr[i]
});

for(var j=0,len=ag.length;j<len;j++)
{
al.each(ag[j]['returnval'],function(aI,aN)
{
if(aI&&aI.uin==cd)
{
aI.remark=al.htmlEncode(at.remark);

aI.remark=at.remark;
_oItem=aI;
return false;
}
});
}
}

if(_oItem)
{
var di={};
di[_oItem.uin]=_oItem;

aD.mergeCache({
update:'uininfo',
set:di
});

return di;
}
},














aMD:function(az,bz)
{

var ad=this,
cX=az.magicid;





if((!az.mailid||(az.mailid&&cX==10))&&(!(az.action&&az.action=='talk')))
{


ad.aYp(0,{count:1});
}



if(cX=='16'&&az.attr&&!az.mailid)
{

var dgv='';
ad.aox=false;

function bQT(as)
{
if(ad.aox===true)
{
return;
}
ad.aox=true;
az['action']='loc';
al.extend(az['attr'],{
city:az.attr.region,
address:az.attr.address,
latlng:'0,0'
});
var Ab=az['attr'];
QMWin.setItem('plppossend',(Ab.city+','+Ab.address+','+Ab.latlng));


az.attr.searchaddress=az.attr.address.replace(/,/g,'-');
ad.aym.call(ad,az,bz);
}

ad.bBW=setTimeout(bQT,5000);

ad.ayq(function(as){
if(ad.aox===true)
{
return;
}
ad.aox=true;
clearTimeout(ad.bBW);
az['action']='loc';
al.extend(az['attr'],{
city:az.attr.region,
address:az.attr.address,
latlng:(as&&as.location&&as.location.getLat)?(as.location.getLng()+','+as.location.getLat()):'0,0'
});

var Ab=az['attr'];
QMWin.setItem('plppossend',(Ab.city+','+Ab.address+','+Ab.latlng));

az.attr.searchaddress=az.attr.address.replace(/,/g,'-');
ad.aym.call(ad,az,bz);
},{
pos:az.attr.address
});

}
else
{
ad.aym.call(ad,az,bz);
}







if(az.action!='guess')
{
ad.aj.dc.getInst_(Cc).dirty(az.mailid);
}

},

aym:function(az,bz)
{
var ad=this,
il='',
bPJ=(+new Date()),
rU=ad.aHN(0)||{},
ahJ=rU.count||0,
gw;
if(az.attr)
{
for(var obj in az.attr)
{
il+=obj+'='+encodeURIComponent(az.attr[obj])+'&';
}
}

if(az.action==="inviteinit")
{
gw=bX.czL.replace({
content:encodeURIComponent(az.content||""),
action:az.action||"",
attr:az.sAttr
});
}
else
{
gw=bX.bVT.replace({
content:encodeURIComponent(az.content||""),
remarkB:encodeURIComponent(az.remarkB||""),
mailid:az.mailid,
icon:az.icon,
replyret:az.replyret,

image:encodeURIComponent(az.image||""),
uin:az.uin||"",
attr:il,
action:az.action||"",
action2:az.action2||"",
type:az.magicid,
version:az.version,
sendcount:ahJ,
posteruin:az.posteruin 
});
}


aD.xhrSend(
bQ.bzS,
{
data:gw,
method:"POST"
},
function(as)
{
al.ossLog("delay","all","stat=plp&1=10008&2="+az.magicid+'&3='+((+new Date())-bPJ));

if(as)
{








{

if(az.magicid!=11||(az.magicid==11&&!az.action))
{
if(!as.errmsg&&!az.mailid)
{

if(!(az.action&&az.action=='talk'))
{

ad.bzm();
}

if(az.magicid=="13"||az.magicid=="14"||az.magicid=="15")
{


}
else
{
var aw=as;
aw.type='send';
aw.bottletype=aC.bottletype;
cr.postData(aw);
}
}
}

if(!as.errmsg)
{
if(az.mailid)
{
if(as.replymailid!=""&&as.replymailid!=as.mailid)
{
var aw=as;
aw.type='sendreplymailid';
cr.postData(aw);


ad.$.$('[mailid="'+as.mailid+'"]').attr('mailid',as.replymailid);
az.mailid=as.replymailid;
}

if(az.action!='direct')
{

var aw=az;
aw.type='send';
cr.postData(aw);
}
}



if(az.magicid==11)
{
if(az.action=="guess")
{
az.action='guessend';
az.guess=as.guess;
az.uininfo=as.uininfo;

var aw=az;
aw.type='send';
aw.returnval=as;
cr.postData(aw);
ad.aj.dc.getInst_(Cc).dirty(az.mailid);
}
else if(az.action=="open")
{
az.action='openend';
var aw=az;
aw.type='send';
aw.returnval=as;
cr.postData(aw);

ad.aj.dc.getInst_(Cc).dirty(az.mailid);
}
}
if(typeof as.upoint!=="undefined")
{
ad.aLH(as.upoint);
ad.Mc(as.upoint);
}
}

if(typeof as.history!=="undefined")
{
ad.aVr(as.history);
}
}
}
else
{
as={
'errmsg':'\u89e3\u91ca\u8fd4\u56de\u7684\u5185\u5bb9\u5931\u8d25'
}
}



al.call(ad,bz,[as]);
}
);


},


aVr:function(as)
{
var aiC=(new Function("return "+as))();

if(aiC&&aiC.mailid)
{
aiC.dirty=false;
IJ=aiC;
if(aiC.uininfo)
{
aD.mergeCache(
{
update:'uininfo',
set:aiC.uininfo
});
}
}
},


Mc:function(uY)
{
ad=this;
var gL=parseInt(uY,10);


var zR=ad.$.$("div#toolbar a.ico_position");
if(gL>=0)
{
zR.css('display','block');
}
else
{
zR.css('display','none');
}
},


aLH:function(uY)
{
var ad=this,
Dm=ad.$.$("a[ck=showchgpoint]"),
YC=Dm.find("span.num"),
bOv=Dm.find("span[un='pointico']");
ad.post(
{
type:"attr",
value:
{
point:uY,
level:uY>=30?2:1
}
});

Dm.attr("title","\u79ef\u5206\uff1a"+uY);
YC.html("("+uY+")");
uY>=30&&bOv.rmClass("ico_level_1").addClass("ico_level_2");
},

cgR:function(ckW)
{
var ad=this;

ad.opt_('picking',ckW);
},

bzm:function()
{
var ad=this;






cr.delData({
'returnval':{
'listtype':'bottle_search',
'listtype':'bottle_drop'
}
});
},

cRM:function()
{
cr.delData({
'returnval':{
'listtype':'bottle_mood'
}
});
},














bJm:function(am,bz)
{
var ad=this,
aUJ='picking';


ad.opt_(aUJ,Math.max(0,parseInt(iA[aUJ],10)-1));


if(am&&am.attr&&am.attr.magicid==16)
{

ad.ayq(function(as){

am.attr['lat']=(as&&as.location&&as.location.getLat)?(as.location.getLat()+','+as.location.getLng()):'0,0';

var Ab=am['attr'];

QMWin.setItem('plppospick',(Ab.region+','+Ab.address+','+Ab.lat));

ad.aTn.call(ad,am,bz);

},{
pos:am.attr.address
});

}
else
{
ad.aTn.call(ad,am,bz);
}
},

aTn:function(am,bz)
{

var ad=this,
Iz=ad.get({type:"picking"})||0,
ax;

if(am&&am.attr)
{
am.attr['picking']=Iz;
am.attr['selfsex']=encodeURIComponent(aC.sex);

if(am.attr.action==="contact")
{
ax=bX.cCd.replace(am.attr);
}

else
{
ax=bX.bAA.replace(am.attr);
}
}
else
{
ax=bX.bVA.replace({picking:Iz,selfsex:encodeURIComponent(aC.sex)})
}
aD.xhrSend(
bQ.bDJ,
{
data:ax,
method:"POST"
},
function(as)
{

setTimeout(function()
{
if(!as)
{
al.call(ad,bz,[]);
return false;
}

as.time=ad.timeStamp(as.timestamp);

if(as.magicid>-1)
{
cr.postData({
'type':'pick',
'item':as
});

var ag=aD.getCache({
'select':'friend'
});

if(as&&as['uininfo'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfo']
});
}

var kE=ad.opt_("unread");
ad.opt_("unread",parseInt(kE,10)+1);
}
if(typeof as.upoint!=="undefined")
{
ad.aLH(as.upoint);
ad.Mc(as.upoint);
}
if(typeof as.upick!=="undefined")
{
ad.cgR(as.upick);
}


if(typeof as.history!=="undefined")
{
ad.aVr(as.history);
}

al.call(ad,bz,[as]);

},am&&am.magicid?0:1000);
}
);
},



awv:function()
{
for(var i=uV.length-1,fB=0;i>=0;i--)
{
fB+=uV[i].count;
}
return fB;
},

















bRq:function()
{
return{
totle:this.awv(),
items:uV
};
},










aHN:function(sW)
{
var ad=this;
if(sW==0)
{

return{
magicid:0,
count:iA.normalBottle,
name:'\u666e\u901a\u74f6'

};
}
else
{

for(var i=uV.length-1;i>=0;i--)
{
if(uV[i].magicid==sW)
{
if(sW=="7")
{

uV[i].interest=aAE;
}
return uV[i];
}
}
}


return{
name:"",
magicid:sW,
gift:0,
count:1
};
},










aYp:function(sW,am)
{
var ad=this;

if(sW==0)
{
var aGq='normalBottle',
aoL=iA[aGq]-(am.count||0);
if(aoL>=0)
{
ad.opt_(aGq,aoL);
return true;
}
}
else if(sW>0)
{

var acg=ad.aHN(sW);
if(acg)
{
acg.count=Math.max(0,acg.count-(am.count||0)),
acg.gift=Math.max(0,acg.gift-(am.gift||0));
ad.fireEvent_('change',['magicBottle',ad.awv()]);
return true;
}
}
return false;
},




ge:function(bz)
{
var ad=this;

aC=window.gAttr;

if(typeof aC.name==='undefined'||typeof aC.age==='undefined'||typeof aC.sex==='undefined'||typeof aC.city==='undefined')
{
aD.xhrSend(
bQ.afE,
{
data:bX.bSx
},
function(as)
{

if(as)
{
for(var obj in as)
{
aC[obj]=as[obj];
}
};

}
);
}
},




bVg:function(az,bz)
{
var ad=this,
UZ=(az.isFri===true)?baU:bdc,
alU=(az.isFri===true)?aTq:aAE;

if(UZ.length<aSY)
{
aD.xhrSend(
bQ.Sr,
{
data:bX.bNU.replace({
cmd:(az.isFri===true)?'truthb':'trutha'
})
},
function(as)
{

if(as&&as[0])
{
if(az.isFri===true)
{
baU.push(as[0]);
aTq=as[0].content;
}
else
{
bdc.push(as[0]);
aAE=as[0].content;
}
}
al.call(ad,bz,[as]);
}
);
}
else
{


for(var i=0,l=UZ.length;i<l;i++)
{
var alV=parseInt((Math.random()*aSY),10),
as=[];

if(UZ[alV]!==alU)
{
as[0]=UZ[alV];
alU=as[0].content;
al.call(ad,bz,[as]);
break;
}
else if(UZ[i]!==alU)
{
as[0]=UZ[i];
alU=as[0].content;
al.call(ad,bz,[as]);
break;
}
}
}
},




bGL:function(az,bz)
{
var ad=this,
nj='',
aSg={'13':'joy','14':'sorrow','15':'secret'};

var aVq=function(as)
{
if(as&&as.length)
{
var alV=parseInt((Math.random()*as.length),10);

return as[alV];
}
else
{
return'';
}
}

if(typeof aSg[az.magicid]!=='undefined')
{
nj=aSg[az.magicid]
}

if(typeof Pv[az.magicid]==='undefined'||Pv[az.magicid].length===0)
{
aD.xhrSend(
bQ.aCv,
{
data:bX.aCv.replace({
cmd:nj
})
},
function(as)
{

if(as)
{

for(var i=0,l=as.length;i<l;i++)
{
if(typeof Pv[as[i].type]==='undefined')
{
Pv[as[i].type]=[];
}
Pv[as[i].type].push(as[i].content);
}
}

al.call(ad,bz,[aVq(Pv[az.magicid])]);
}
);
return'';
}
else
{


return aVq(Pv[az.magicid]);
}
},

SL:function(bz)
{
var ad=this,
QV=/#(.*?)#/;




if(Tt==='')
{
aD.xhrSend(
bQ.Sr,
{
data:bX.bVQ
},
function(as)
{

var QV=/#(.*?)#/,iQ='',aR='',azJ='',azf='';

if(as&&as['return'])
{

as['return']=decodeURIComponent(as['return']);
var bNH=new RegExp('&lt;topic&gt;(.*?)&lt;/topic&gt;','g'),Vr=as['return'].match(bNH),di=[];

adL=[];

for(var i=0,l=Vr.length;i<l;i++)
{
di[i]={};
di[i].subject=Vr[i].match(/&lt;subject&gt;(.*?)&lt;\/subject&gt;/);
di[i].subject=di[i].subject[1];
di[i].desc=Vr[i].match(/&lt;desc&gt;(.*?)&lt;\/desc&gt;/);
di[i].desc=di[i].desc[1];
di[i].link=Vr[i].match(/&lt;link&gt;(.*?)&lt;\/link&gt;/);
di[i].link=di[i].link[1];

di[i].subject=di[i].subject.match(QV);
di[i].subject=di[i].subject[1];

azJ=al.htmlDecode(di[i].subject);
azf=al.htmlDecode(di[i].desc);

if(al.htmlDecode(di[i].subject).length>16)
{
azJ=al.htmlDecode(di[i].subject).substr(0,16)+'...';
}
if(al.htmlDecode(di[i].desc).length>56)
{
azf=al.htmlDecode(di[i].desc).substr(0,56)+'...';
}

adL.push({'mbtitle':'#'+di[i].subject+'#','mbfiltertitle':'#'+azJ+'#','mbcontent':di[i].desc,'mbfiltercontent':azf,'mblink':di[i].link});
}

bHm=adL.length;



ad.aTo(true);

}





al.call(ad,bz,[ad.aWP()]);
}
);
}
else
{


al.call(ad,bz,[ad.aWP()]);
}



},

bDo:function(bz)
{
var ad=this;

aD.xhrSend(
bQ.Sr,
{
data:bX.bNX
},
function(as)
{

al.call(ad,bz,[as]);
}
);
},

aTo:function(cH)
{





Tt='';
},

aWP:function()
{
var as=[];



if(typeof adL[Tt]==='undefined')
{
Tt=0;
}

as[0]=adL[Tt];

Tt='';
return as;
},








bHG:function(bz,am)
{
var ad=this;

aD.xhrSend(
bQ.Sr,
{
data:bX.bKj.replace(am)
},
function(as)
{

al.call(ad,bz,[as]);
}
);
},








ayT:function(bz,am,cH)
{

var ad=this;

if(typeof Du[am.region+am.keyword]!=='undefined')
{
al.call(ad,bz,[Du[am.region+am.keyword]]);
}

var bDZ=new soso.maps.Suggestion();

var lW={
keyword:am.keyword,
region:am.region
}
bDZ.complete(lW,function(as,ey){
if(ey==soso.maps.SuggestionStatus.OK)
{


as=ad.bHH(lW,as,cH);


if(as.length>0)
{
Du[am.region+am.keyword]=as;
}

if(as.length==0&&!am['reKeyword'])
{
ad.aRR(bz,am);
}
else
{

al.call(ad,bz,[as]);
}
}
else
{
debug("\u68c0\u7d22\u6ca1\u6709\u7ed3\u679c\uff0c\u539f\u56e0: "+ey);


ad.aRR(bz,am);
}
});
},








bHH:function(lW,as,cH)
{

var ad=this,
atc={},
fD=[];

for(var i=0,l=as.length;i<l;i++)
{
if(cH!==true)
{
var aXg=as[i]['district'].split(',');
if(lW['region'].indexOf(aXg[aXg.length-1])>-1)
{
atc[as[i]['text']]=1;
}
}
else
{
atc[as[i]['text']]=1;
}
}


for(var obj in atc)
{
fD.push({
'text':obj
});
}
return fD;
},

aRR:function(bz,am)
{
var ad=this;

if(!am['reKeyword']&&am.keyword.length<=1)
{
am['keyword']=am['region'];
am['reKeyword']=true;
ad.ayT(bz,am,false);
return false;
}

var bS=am.keyword.substr(0,am.keyword.length-1);
if(Du[am.region+bS])
{
as=Du[am.region+bS];
al.call(ad,bz,[as]);
}
else
{
am['keyword']=bS;
ad.ayT(bz,am);
return false;
}
},


cxv:function()
{
var acb,RU;
for(var i=0,_nLen=EY.length;i<_nLen;i++)
{
acb=EY[i];
for(var j=0,bUv=acb.length;j<bUv;j++)
{
RU=acb[j];
byi[parseInt(RU.qid,10)]=RU;

}
}
},

cob:function(bz,am)
{
var ad=this;

if(EY.length===0)
{
aD.xhrSend(
bQ.aTP,
{
data:bX.aTP
},
function(as)
{


if(as.question)
{
EY=as.question;
ad.cxv();
al.call(ad,bz,[EY]);
}
else
{
al.call(ad,bz,[{error:true}]);
}
}
);
}
else
{
al.call(ad,bz,[EY]);
}
},

cil:function(bz,at)
{
var ad=this;

aD.xhrSend(
bQ.aUs,
{
data:bX.aUs
},
function(as)
{
aD.callback(ad,bz,at,as);
}
);
},


cyw:function(bz,am)
{
var ad=this,
pN=function()
{
var _nLen=IJ.length;
if(IJ&&IJ[_nLen-1])
{
al.call(ad,bz,[IJ[_nLen-1]]);
IJ.length=_nLen-1;

}
else
{
al.call(ad,bz,[null]);
}
};


if(!aC["gethistory"])
{
aC["gethistory"]=true;
aD.xhrSend(
bQ.aXS,
{
data:bX.aXS
},
function(as)
{
if(as&&as.uininfo)
{
IJ=as.history;
pN();
if(as.uininfo)
{
aD.mergeCache(
{
update:'uininfo',
set:as.uininfo
});
}
}
}
);
}
else
{
pN();
}
},









ayq:function(bz,am)
{
var ad=this;
if(typeof amk[am.pos]!=='undefined')
{
al.call(ad,bz,[amk[am.pos]]);
return;
}


var bJU=new soso.maps.SearchService();

var dH=[];

if(am.pos&&am.pos.split)
{
dH=am.pos.split(',');
if(dH[1]=='')
{
aL={};
amk[am.pos]=aL;
al.call(ad,bz,[aL]);
return;
}
}
var cKm={
'keyword':dH[1],
'region':dH[0]
};


bJU.search(cKm,function(as,ey){

if(ey==soso.maps.SearchStatus.OK)
{


if(as&&as.pois&&as.pois.length>0)
{
as.location=as.pois[0].latLng;
amk[am.pos]=as;
}
}
else
{
debug("\u68c0\u7d22\u6ca1\u6709\u7ed3\u679c\uff0c\u539f\u56e0: "+ey);
}
al.call(ad,bz,[as]);
});

},

btb:function(at,bz)
{
var ad=this;

aD.xhrSend(
bQ.Sr,
{
data:bX.Sr.replace(at)
},
function(as)
{
if(bz)
{

if(as)
{
al.call(ad,bz,[EY]);
}
else
{
al.call(ad,bz,[{error:true}]);
}
}
}
);
},

timeStamp:function(Nw)
{
if(al.isStr(Nw))
{
var aHr=parseInt(Nw.substr(0,Nw.length-6));
if(aHr>afb)
{
afb=aHr;
}
}

return afb;
},





































get:function(at,fZ)
{




var aP=at.type,
ad=this,
kz;
if(aP=='icon')
{
kz=at.value==ay?aC[aP]:aC[aP][at.value];


return kz;
}
else if(aP=="opened")
{
return aC['plpopen'];
}
else if(aP=='tip')
{
kz=at.value==ay?iA[aP]:iA[aP][at.value];

return kz||false;
}
else if(iA[aP]!=ay||aC[aP]!=ay)
{

if(iA[aP]!=ay)
{
return iA[aP];
}
if(aC[aP]!=ay)
{
return aC[aP];
}
return{};
}
else
{

switch(aP)
{
case'magicBottle':
kz=ad.awv();

return kz;
case'magicgroup':
kz=ad.bRq();

return kz;
case'lastTimeStamp':

return afb;
case'bottleinfo':
kz=ad.aHN(at.value);

return	kz;
case'attr':
if(typeof aC.name==='undefined'||typeof aC.age==='undefined'||typeof aC.sex==='undefined'||typeof aC.city==='undefined')
{
if(aC=='')
{
aC={};
}

aC.name=aC.name||'';
aC.age=aC.age||'30';
aC.sex=aC.sex||'\u7537';
aC.city=aC.city||'';
aC.collect=aC.collect||'0';
aC.level=aC.level||'1';
aC.point=aC.point||'0';
aC.weather=aC.weather||'';

ad.ge();
}
return aC;
case'true':
ad.bVg(at,fZ);
break;
case'mood':
return ad.bGL(at,fZ);
break;
case'mb':
ad.SL(fZ);
break;
case'mbstatus':
ad.bDo(fZ,at.value);
break;
case'cipher':
ad.bHG(fZ,at.param);
break;
case'searchpos':
ad.ayT(fZ,at.param);
break;
case'searchlat':
ad.ayq(fZ,at.param);
break;
case'pos':
return Du;
break;
case'history':
return ad.cyw(fZ,at.param);
break;
case'getquestion':
ad.cob(fZ,at);
if(EY.length>0)
{
return EY;
}
break;
case'questionmap':
return byi;
break;
case'checkskin':
ad.cil(fZ,at);
break;
case'gardenupdfriends':
return ad.cir();
break;
default:
break;
}

}

return null;
},




































































post:function(at,fZ)
{




var aP=at.type,
hz=at.value,
ad=this,
fK=function(aT)
{
aD.callback(ad,fZ,at,aT);
};

if(iA[aP]!=ay)
{

ad.opt_(aP,hz);
}
else if(aC[aP]!=ay)
{
aC[aP]=hz;
}
else
{
switch(aP)
{
case'attr':
for(var obj in hz)
{
aC[obj]=hz[obj];
}

break;
case'magicgroup':
uV=hz;
ad.fireEvent_('change',[aP]);
break;
case'mailclose':
ad.bLt(at,fZ);
break;
case'magicbottle':
var bo={},
bae={};
hz=hz.split(';');
for(var i=0,l=hz.length;i<l-1;i++)
{
if(hz[i]!=0)
{
bo[hz[i]]=1;
}
};

for(var i=0,l=uV.length;i<l;i++)
{
if(!bo[uV[i].magicid])
{
bo[uV[i].magicid]=1;
}
bae[uV[i].magicid]=uV[i];
};

i=0;

for(var obj in bo)
{
uV[i]=bae[obj];
i++;
};
break;
case'delmagic':
ad.aYp(hz,{count:1});
break;
case'favour':
ad.Pc(at,fK);
break;
case'open':
ad.bFu(hz,fK);
break;
case'drop':
ad.bIW(at.mailid,at.copymailid,at.posteruin,at.del||false,at.dropaction||'',fK);
break;
case'stepgarden':
ad.cKv(at,fK);
break;
case'delfavour':
ad.bVe(at,fK);
break;
case'spam':
ad.byL(at,fK);
break;
case'send':
ad.aMD(at,fK);
break;
case'pick':
ad.bJm(at,fK);
break;
case'setname':
ad.bIB(hz,fK);
break;
case'setskin':
ad.cHn(hz,fK);
break;
case'resetmb':
ad.aTo();
break;
case'seticon':

ad.opt_('icon',hz);
break;
case'setremark':
ad.bEv(at,fK);
break;
case'setshowicon':
ad.bHE(hz);
break;
case'setunannoy':
ad.bLO(at);
break;
case'setlonely':
ad.bEn(at);
break;
case'chgpoint':
ad.bVz(at,fK);
break;
case'delmore':
ad.bDH(at,fK);
break;
case'inputstate':
ad.bCh(at,fK);
break;
case'mailrealtime':
ad.bWc(at,fK);
break;
case'delsingle':
ad.bDu(at,fK);
break;
case'delmsg':
ad.bSF(at,fK);
break;
case'opensearch':
ad.coR(at,fK);
break;
case'chgquestion':
ad.cFX(at,fK);
break;
case'weaktipread':
ad.cdW(at,fK);
break;
case'synbottle':
ad.cch(at,fK);
break;
case'delsay':
ad.cxc(at,fK);
break;
case'delpic':
ad.csM(at,fK);
break;
case'initupdate':
ad.cHH(at,fK);
break;
case'uploadpic':
ad.cwh(at,fK);
break;
case'synsetting':
ad.cfO(at,fK);
break;
case'gardenupdfriends':
ad.cGg(at,fK);
break;
case'firstpic':
ad.btb(at,fK);
break;
case'lastpic':
ad.btb(at,fK);
break;
default:
break;
}
}
return true;
},







init_:function(ap)
{
var ad=this;
ad.aj=ap||{},
$=ad.superEx_(av,"init_",[ap]).$;

ad.aj.test=$.unikey();

}
}
);
}
);


}


);





$.package(

"bottle/ctrl/dcmail.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;





al.createCtrl(

"PLP.DCMail",


{},


function(av)
{

var
bRN='PLP.DCList',
awo='PLP.DCGeneral',
bQ=
{
acu:"/cgi-bin/bottle_read",
aDh:"/cgi-bin/bottle_read",
Kj:"/cgi-bin/bottle_opr",
btR:"/cgi-bin/bottle_opr"
},
bX=
{
acu:al.T("mailid=$mailid$&mode=$mode$&loc=bottle_read,$loc$,,1&psize=$psize$&porder=$porder$&history=$history$"),
aDh:al.T("mailid=$mailid$&mode=$mode$&loc=bottle_read,$loc$,,1&action=attach"),
Kj:al.T("msgid=$mailid$&cmd=readmsg")
},
aD=al.lib('PLP.Util'),

bCF=20,


bzO=1,





























bw={},
cr=al.lib('PLP.ModelList'),
aWS={},
array_del=function(lT,n)
{



if(n<0)
{
return lT;
}
else
{
return lT.slice(0,n).concat(lT.slice(n+1,lT.length));
}






};


return(
{










aVJ:function(at,aH,adJ,iM,aFg,bz)
{
var ad=this,

bJv=(+new Date()),

bE=cr.getData({
'type':'listinfo',
'mailid':aH.replace(/sysmsg_\d*_/,"")
}),
eY=(bE&&bE.isnewver)||"0",
ga=(bE&&bE.posteruin)||"";
aD.xhrSend(
bQ.acu,
{
data:bX.acu.replace(
{
loc:iM||"",
mode:adJ?'fake':'',
history:at.history?at.history:'',
psize:(aFg=='9')?'':bCF,
porder:(aFg=='9')?'':bzO,
mailid:aH,
version:eY,
posteruin:ga
}
)
},
function(as)
{

if(as&&as['uininfolist'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfolist']
});
}

if(as)
{
al.ossLog("delay","all","stat=plp&1=10007&2="+as.magicid+'&3='+((+new Date())-bJv));
}


if(as.mailid)
{
ad.aRW(as);

}






al.call(ad,bz,[as]);
}
);



cr.postData({
'type':'unreadmail',
'mailid':aH.replace(/sysmsg_\d*_/,"")
});
},

dDP:function(aH)
{
var ad=this,
mr=['sysmsg'];

for(var i=0,l=mr.length;i<l;i++)
{
var ag=aD.getCache({
'select':mr[i]
});

for(var j=0,len=ag.length;j<len;j++)
{
var aKL=false;
al.each(ag[j]['returnval']['sysmsg'],function(aI,aN)
{

if(aI&&(aI.mailid.indexOf(aH)>-1))
{
if(ag[j]['returnval']['sysmsg'][aN]['unread']==true)
{
ag[j]['returnval']['sysmsg'][aN]['unread']=false;
}


aD.setCache({
update:mr[i],
set:ag[j]
});

if(aKL===false)
{

ad.bbP(aH);
aKL=true;
}


}
});
}
}
},

bbP:function(aH)
{
aD.xhrSend(
bQ.Kj,
{
data:bX.Kj.replace(
{
mailid:aH
}
)
}
);
},










bRc:function(aH,adJ,iM,bz)
{
var ad=this,
bD=ad.getCacheMail(aH);

aD.xhrSend(
bQ.acu,
{
data:bX.acu.replace(
{
loc:iM||"",
mode:adJ?'fake':'',
psize:bD.psize,
porder:parseInt(bD.porder,10)+1,
mailid:aH
}
)
},
function(as)
{
if(as&&as['uininfo'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfo']
});
}

if(as.mailid)
{
ad.aRW(as,true);
as=null;
}


al.call(ad,bz,[as]);
}
);
},










dVW:function(aH,cHm,iM,aFg,bz)
{
var ad=this;

aD.xhrSend(
bQ.btR,
{
data:bX.btR.replace(
{
otheruin:cHm,
mailid:aH
}
)
},
function(as)
{

if(as&&as['uininfolist'])
{
aD.mergeCache({
update:'uininfo',
set:as['uininfolist']
});
}

if(bw[aH])
{
ad.cFF(aH,as);

}






al.call(ad,bz,[bw[aH]]);
}
);
},

cFF:function(aH,as)
{
var ad=this;


var ax=as.familiaritems,
Qg=parseInt(as.timestamp,10),
bo=[],
ajc=[],
bvW=[];


for(var i=0,l=ax.length;i<l;i++)
{
for(var j=0,len=ax[i].length;j<len;j++)
{
ax[i][j]['stime']=parseInt(ax[i][j]['stime'],10);

ax[i][j].timewording=aD.millTimeFormator(ax[i][j]['stime'],Qg);


var SK=bw[aH]['otheruin'];

if(ax[i][j]['questionuin']==SK)
{
ax[i][j]['ismyself']=false;
}
else
{
ax[i][j]['ismyself']=true;
}

for(var k=0,leng=ax[i][j]['answer'].length;k<leng;k++)
{
if(ax[i][j]['answer'][k]['uin']==SK)
{

ax[i][j]['otheranswer']=ax[i][j]['answer'][k]['content'];
}
else
{
ax[i][j]['myanswer']=ax[i][j]['answer'][k]['content'];
}
}

bo[ax[i][j]['stime']]=ax[i][j];
ajc.push(ax[i][j]['stime']);
}
}


ajc.sort(function(a,b){
return b-a;
});

for(var i=0,l=ajc.length;i<l;i++)
{
if(bo[ajc[i]]&&bo[ajc[i]]['answer'])
{
bvW.push(bo[ajc[i]]);
}
}

bw[aH]['familiaritems']=ax;
bw[aH]['allfamiliaritems']=bvW;
},










bOk:function(aH,adJ,iM,bz)
{
var ad=this;
aD.xhrSend(
bQ.aDh,
{
data:bX.aDh.replace(
{
loc:iM||"",
mode:adJ?'fake':'',
mailid:aH
}
)
},
function(as)
{
if(as.mailid)
{
ad.bGn(as);
as=null;
}


al.call(ad,bz,[as]);
}
);
},


aRW:function(ag,bUL)
{

var ad=this,
aU=ag.mailid,
aSt=bw[aU];

ad.aj.dc.getInst_("PLP.DCGeneral").timeStamp(ag.timestamp);

ag.dirty=false;


if(typeof bw[aU]!=='undefined'&&bUL===true)
{
ag.content=bw[aU].content.concat(ag.content);
bw[aU]=ag;
}
else
{
bw[aU]=ag;
}

if(aSt&&aSt.time<ag.time)
{


}
var pZ=bw[aU],
aB=pZ.content,
AK=pZ.psize||20,
bwY=0,
ND=[];

!pZ.queinprogress&&(pZ.queinprogress=[]);
for(var i=0,_nLen=aB.length;i<_nLen;i++)
{
if(aB[i].conttype==13)
{
bwY=aB[i].primsgid;
for(var j=i+1;j<_nLen;j++)
{
if(aB[j].msgid==bwY)
{


if(j-i>AK)
{
ND.push(j);
break;
}

else if(j-i<AK)
{
aB[j]=aB[i];
ND.push(i);
break;
}
}
}
}
else if(aB[i].conttype==12&&(aB[i].finish==false))
{
pZ.queinprogress[parseInt(aB[i].qid,10)]=aB[i];
}
}
if(ND.length>0)
{

ND.sort(function(a,b)
{
return a-b;
});
for(var i=ND.length-1;i>=0;i--)
{
aB=array_del(aB,ND[i]);
}
pZ.content=aB;
debug(pZ.content.length);
}
},


bWe:function(ag)
{
var ad=this,
aU=ag.mailid;

if(bw[aU])
{
for(var obj in ag)
{
if(obj!=='type')
{
bw[aU][obj]=ag[obj];
}
}



}
},

bGn:function(ag)
{

var ad=this,
aU=ag.mailid;

ag.dirty=false;
aWS[aU]=ag;
},










bpy:function(aH,Au,iM)
{

var ad=this,
bD=ad.getCacheMail(aH);
if(bD&&bD.unread!=Au)
{
bD.unread=Au;
aVJ({},aH,true,iM);
ad.fireEvent_("change",['unread',bD]);




cr.postData({
'type':'unreadmail',
'mailid':aH
});
}
return ad;
},


csX:function(at)
{
var aU=at.mailid,
EY=at.value,
bD=bw[aU];
bD&&(bD.question=EY);
},










getCacheMail:function(aH)
{
return bw[aH]||null;
},







getCacheAttach:function(aH)
{
return aWS[aH]||null;
},







delCacheMail:function(aH)
{
var ad=this,
bD=bw[aH];
if(bD)
{
delete bw[aH];
ad.fireEvent_("change",['delete',bD]);






}
return ad;
},





dirty:function(aH)
{
var ad=this,
bD=bw[aH];
if(bD&&!bD.dirty)
{
bD.dirty=true;
ad.fireEvent_("change",['dirty',bD]);
}
return ad;
},










































get:function(at,fZ)
{
var aP=at.type,
ad=this;

switch(aP)
{
case'read':
var aU=at.mailid,
akQ=function(aex,sR)
{
if(sR)
{
aD.callback(ad,fZ,at,sR);
return true;
}
var bD=ad.getCacheMail(aU.replace(/sysmsg_\d*_/,""));

if(bD&&!bD.dirty)
{
if(sR===false)
{
bD.iscache=false;
}
else
{
bD.iscache=true;
}

aex&&aD.callback(ad,fZ,at,bD);

return bD;
}
return null;
},
bD=akQ(true);

if(!bD)
{
ad.aVJ(at,aU.replace(/sysmsg_\d*_/,""),false,at.loc,at.magicid,function(as)
{
if(!as||(as&&as.errmsg))
{
if(as&&as.errmsg)
{
akQ(true,as);
}
else
{
akQ(true,{errmsg:'cgi exception',errcode:-1});
}
}
else
{
akQ(true,false);
}
}
);
}

return null;
break;
case'readmore':
var aU=at.mailid,
bDI=function(aex,sR)
{

if(sR)
{
aD.callback(ad,fZ,at,sR);
return true;
}

var bD=ad.getCacheMail(aU);
if(bD&&!bD.dirty)
{


aex&&aD.callback(ad,fZ,at,bD);
return bD;
}
return null;
},
bD=null;
if(!bD)
{
ad.bRc(aU,false,at.loc,function(as)
{
bDI(true,as);
}
);
}

return null;
break;
case'cache':
var aU=at.mailid,
bD=ad.getCacheMail(aU);

if(bD)
{

aD.callback(ad,fZ,at,bD);
return bD;
}
return null;
break;
case'attach':
var aU=at.mailid,
aXt=function(aex,sR)
{
if(sR)
{
aD.callback(ad,fZ,at,sR);
return true;
}
var bD=ad.getCacheAttach(aU);
if(bD)
{
aex&&aD.callback(ad,fZ,at,bD);
return bD;
}
return null;
},
bD=aXt(true);
if(!bD)
{
ad.bOk(aU,false,at.loc,function(as)
{
aXt(true,as);
}
);
}
return null;
break;
default:break;
}
return null;
},






















post:function(at,fZ)
{




var aP=at.type,
ad=this;
switch(aP)
{
case'unread':
ad.bpy(at.mailid,at.value||false,at.loc);
break;
case'update':
ad.bWe(at);
break;
case'setquestion':
ad.csX(at);
break;
case'delcachemail':
ad.delCacheMail(at.mailid);
break;
default:
break;
}

return true;
},


































init_:function(ap)
{
var ad=this;
ad.aj=ap||{},
$=ad.superEx_(av,"init_",[ap]).$;
}
}
);
}
);


}


);





$.package(


"bottle/ctrl/datacenter.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;





al.createLib(

"PLP.Data",


{bStatic:true},
function(av)
{
var ayS='PLP.DCMail',
ix='PLP.DCList',
bN='PLP.DCGeneral';

return(
{

getInst_:function(kn,at)
{

return this.alA[kn];
},








get:function(kn,at,fZ)
{
var ad=this,
eD=ad.alA[kn];


if(eD)
{
return eD.get(at,fZ);
}
return null;
},




post:function(kn,at,fZ)
{
var ad=this,
eD=ad.alA[kn];

if(eD)
{
eD.post(at,fZ);
return true;
}
return false;
},







addEvent:function(kn,cj,bz,awj)
{
var ad=this,
eD=ad.alA[kn];
if(eD)
{
al[awj?'delEvent':'addEvent'](eD,cj,bz);
return true;
}
return false;
},





init_:function(ap)
{
var ad=this;
ad.aj=ap||{},
$=ad.superEx_(av,"init_",[ap]).$,
bNQ=ad.alA={};


al.each([ix,ayS,bN],function(kn)
{
bNQ[kn]=al.ctrl(kn,{
dc:ad
});
}
);
}
}
);
}
);




}


);


$.package(


"bottle/ctrl/frame.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;









al.createCtrl(
"PLP.Frame",
{sSuper:'TagEventCatcher'},
function(av)
{
var anT=[al.$("#bottle_magic"),al.$("#bottle_all"),al.$("#bottle_interactive"),al.$("#bottle_mail"),al.$("#bottle_setting"),al.$("#homepage"),al.$("#bottle_send"),al.$("#bottle_tips"),al.$("#bottle_familiar")],
aD=al.lib('PLP.Util'),
ekJ=window.gSourceList;
return(
{













createCtrl:function(kn,ap,_aoEvent,am)
{
var ad=this,
hN=function(kn,ap,_aoEvent,am){
eD=al.ctrl(kn,ap,_aoEvent);

if(eD)
{
ad.aDs.push(eD);


window.gLastCtrl=eD;
window.gLastCtrl.ctrlname=kn;
}

return eD;
};

return aD.checkCtrl({
ctrlname:kn,
param:{
cfg:ap,
event:_aoEvent,
config:am
}
},function(aw){
return hN(aw.ctrlname,aw.param.cfg,aw.param.event,aw.param.config);
});
},

bal:function(cH)
{
var ad=this;

if(cH===true)
{
for(var i=0,l=anT.length;i<l;i++)
{
if(anT[i].css('display')!='none')
{
ad.$.$("#bottle_paperlist").addClass('opacity1');
return true;
}
}
}
else
{
for(var i=0,l=anT.length;i<l;i++)
{
if(anT[i].css('display')!='none')
{
return false;
}
}

ad.$.$("#bottle_paperlist").rmClass('opacity1');
}
},

isActive:function()
{
return this.Dx;
},

isShow:function()
{
return this.Iu;
},

getDom:function()
{
return this.aj.oDom;
},

show:function()
{
var ad=this;
if(ad.Dx&&ad.bCanShow!==false)
{
ad.Iu=true;
ad.aj.oDom.show();
}

ad.bal(true);

return ad;
},

destroy:function(cA,at)
{
var ad=this;

if(ad.Dx)
{
ad.Dx=ad.Iu=false;
ad.aj.oDom.hide();

al.each(ad.aDs,function(GY)
{
GY.destroy();
}
);
ad.aDs=[];

ad.bal(false);

ad.fireEvent_('close',[cA,at]);


}
return ad;
},

emp:function(bu)
{
var ad=this;
},

hide:function()
{
var ad=this;
if(ad.Dx)
{
ad.Iu=false;
ad.aj.oDom.hide();
ad.fireEvent_('hide');
}
return ad;
},

rule:function()
{
return{};
},
events:function()
{
return{};
},











init_:function(ap)
{
var ad=this;




ad.aj=ap;
ad.superEx_(av,"init_",[ap]);


ad.aDs=[];

ad.Iu=false;
ad.Dx=true;
}

}
);
}
);
}

);


$.package(


"bottle/ctrl/tip.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;











al.createCtrl(
"PLP.Tip",
{sSuper:'PLP.Frame'},
function(av)
{
var aJ=al.lib('PLP.Template'),
aD=al.lib('PLP.Util'),
au=al.lib('PLP.Data'),
jD=null;

return(
{
fe:function(da,am)
{

var ad=this,
_oDom=ad.aj.oDom;
am=am||{};
if(am.delay==ay)
{
am.delay=2000;
}

if(am.tiptype!=='memo')
{
ad.jS();
ad.anc();
}

ad.aj.aoConfig=am;

if(da&&ad.isActive())
{
if(!am.nomask)
{
al.addEvent(ad.Jr.css('display','block'),'click',ad.aOx);


ad.$.$("#bottle_paperlist").attr('isshow','false');
}
ad.$.$("#bottle_paperlist").attr('isshow','false');


if(_oDom.data(0).className)
{
_oDom.data(0).className='tips';
}

if(am.className)
{
_oDom.addClass(am.className);
}

ad.aj.oDom.html(da);


ad.aj.oDom.data(0).style.top="";
ad.aj.oDom.data(0).style.left="";


if(am.top)
{
ad.aj.oDom.css("top",am.top);
}
if(am.left)
{
ad.aj.oDom.css("left",am.left);
}

ad.superEx_(av,"show");

if(am.delay>0)
{
ad.vy=setTimeout(
function()
{
clearTimeout(ad.vy);
ad.vy=null;
ad.jS();
am.beforeHide&&am.beforeHide(ad);

ad.fireEvent_('timeoff');
},
am.delay
);
}
}

if(ad.aj.oDom.find('input[un=searchtip]').size()>0)
{
ad.azZ();
}

return ad;
},

azZ:function()
{


var ad=this;


var
ak=ad.aj.oDom,
iS=QMWin.getItem('plppospick');
var qj=[];
if(iS&&iS.split)
{
qj=iS.split(',');
}

if(qj[0]&&qj[1]&&qj[2]!='undefined')
{

var azo=iS,
zX=azo.split(','),
FN=zX[0];
ad.bSR={
sCityCode:zX[0],
sAddressKeep:zX[2],
oLocation:{
sLat:zX[3],
sLng:zX[4]
}
}

var abw=ad.bSR.sAddressKeep;
if(abw)
{
var fr=ad.aj.oDom.find('input[un=searchtip]');
fr.attr('value',abw);
}
}
else
{
FN=aC.cityToSend||aC.city;

}
Xl=["div[next=country_qmpanel_shadow]","div[next=province_qmpanel_shadow]","div[next=province_qmpanel_shadow_other]","div[next=city_qmpanel_shadow]"];


if(!FN)
{
ad.zN("1280000");
}
else if(FN==32768)
{
ad.zN("1280000");
}
else
{
ad.zN(FN);
}













for(var i=0,_nLen=Xl.length;i<_nLen;i++)
{
var dW=ak.find(Xl[i]);
dW.addEvent("blur",function()
{
var ak=ad.$.$(this),
kf=ak.parent("*"),
bk=ak.attr("next"),
QO=ad.$.$("div[bind='"+bk+"']"),
hT=kf.find("div#"+bk);

ak.attr("_t",setInterval(function(){
if(hT.size()>0)
{
clearInterval(ak.attr('_t'));
if(hT.attr("lastscroll")!=hT.attr("isscroll"))
{
hT.attr('lastscroll',hT.attr('isscroll'));
ak.focus();
}
else
{
clearInterval(ak.attr("_t"));
hT.attr('lastscroll','0').attr('isscroll','0');
hT.hide();
QO.rmClass("state_selected");
}
}
else
{
hT.hide();
QO.rmClass("state_selected");
clearInterval(ak.attr("_t"));
}

},200));

});
}

ad.$.$("#bottle_magic").hide();
al.searchtip({
oTxtContent:ad.aj.oDom.find('input[un=searchtip]'),
oGuessContainer:ad.aj.oDom.find('div#searchtipcontainer'),
fTxtContentOnChange:ad.Ty,
oClrSearchIco:ad.aj.oDom.find('a#ico_clrSearchPick'),
oSuper:ad.aj.oDom
});
},

Ty:function(av)
{


var ad=this,
wS=this.oSuper,
az={
'type':'searchpos',
'param':{
'region':wS.find('div[next=city_qmpanel_shadow]').html(),
'keyword':ad.oTxtContent.attr('value')
}
},
cg=ad.oTxtContent.attr('value');

au.get('PLP.DCGeneral',
az,
function(as){


if(cg!=ad.sLastValue)
{
return false;
}

var uL=[];






for(var i=0,len=as.length;i<len;i++)
{
uL[uL.length]=as[i].text;
}





CG=aJ.get('pos').replace(
{
items:uL
});

sQ=uL.length;

if(sQ>0)
{
ad.oGuessContainer.html(CG).css('display','block');
}
else
{
ad.oGuessContainer.css('display','none');
}
}
);
},

jS:function()
{
var ad=this;

ad.aj.oDom.css('display','none');

al.delEvent(ad.Jr.css('display','none'),'click',ad.aOx);


ad.$.$("#bottle_paperlist").attr('isshow','true');

if(ad.vy)
{
clearTimeout(ad.vy);
ad.vy=null;
}
return ad;
},

bRJ:function(da,am)
{

var ad=this,
ak=ad.$.$('#weaktip'),
ada=null;

am=am||{};
if(am.delay==ay)
{
am.delay=2000;
}

ad.anc();

if(da&&ad.isActive())
{
ak.data(0).onclick=function(_aoEvent)
{
var bW=_aoEvent||window.event;
ad.fireEvent_('click',[bW,al.target(bW)]);
}










ak.data(0).className="bottle_tips_light";
if(am.className)
{
ak.addClass(am.className);
}

ak.html(da).css('display','block');


if(am.delay>0)
{
ada=setTimeout(
function()
{
ad.anc();

ad.fireEvent_('timeoff');
},
am.delay
);
ad.aj.oDom.attr("timeid",ada);
}
}
return ad;
},

anc:function(na)
{
var ad=this,
ada=ad.aj.oDom.attr("timeid");
ad.$.$('#weaktip').hide().data(0).onclick=null;
ad.Jr.hide();


ad.$.$("#bottle_paperlist").attr('isshow','true');
ada&&clearTimeout(ada);
return ad;
},










show:function(bO,am)
{
return this.fe(bO,am);
},










showInfo:function(bO,am)
{
return this.fe(aJ.get('tip').replace({
type:am&&am.type,
msg:bO
}),am);
},










showOldInfo:function(bO,am)
{






return this.bRJ(aJ.get('weaktip').replace({
msg:bO,
type:am&&am.type
}),am);
},









showPlain:function(bO,am)
{
am=am||{};
return this.fe(aJ.get('tip').replace({
plaintype:am.plaintype,
type:am.plaintype,
msg:bO
}),am);
},

showOther:function(bO,am)
{
am=am||{};
return this.fe(aJ.get('othertip').replace({
plaintype:am.plaintype,
type:am.plaintype,
msg:bO
}),am);
},










showOldPlain:function(bO,am)
{
return this.fe(aJ.get('tip').replace({
plaintype:'plain',

type:am.plaintype,
msg:bO
}),am);
},










showErr:function(bO,am)
{
return this.fe(aJ.get('tip').replace({
type:'fail',
msg:bO
}),am);
},










showOldErr:function(bO,am)
{
return this.fe(aJ.get('oldtip').replace({
type:'fail',

msg:bO
}),am);
},










showMemo:function(bO,am)
{
am.tiptype='memo';

return this.fe(aJ.get('memotip').replace({
type:am&&am.type,
msg:bO
}),am);
},

destroy:function(cA,at)
{
return this.jS().superEx_(av,"destroy",[cA,at]);
},






hide:function()
{
return this.jS().anc().superEx_(av,"hide");
},






selectDiv:function(nE,vd,abr)
{
var ad=this,
ak=ad.$.$(nE),
nN=ak.find("p["+abr+"="+vd+"]");
ak.data(0).scrollTop=(nN.data(0)&&nN.data(0).offsetTop-30)||0;
nN.addClass("menu_item_hover");
},

yK:function(aF)
{
var ad=this,
ak=ad.aj.oDom,
_oInfo=aD.getprovinceinfo(),
AB=ak.find('div[next=country_qmpanel_shadow]').attr('name');
if(_oInfo[AB])
{
return _oInfo[AB][aF];
}
else
{
return[];
}
},
zN:function(eq)
{
var ad=this,
ak=ad.aj.oDom,
hC=aD.hashcity(eq);

var fr=ak.find('input[un=searchtip]');
if(hC.city=='\u4e0d\u9650')
{
fr.attr('value','');
ad.$.$(fr.data(0).parentNode).css('display','none');
}

ak.find("div[next=country_qmpanel_shadow]").html(hC.country).attr('name',hC.country);

if(hC.country=='\u4e2d\u56fd')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow');
ak.find('div[next=province_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_province').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_city').css('display','block');
}
if(hC.country=='\u5176\u4ed6\u5730\u533a')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ak.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}

ak.find("div[next=province_qmpanel_shadow]").html(hC.province).attr('name',hC.province);

var bo=ad.yK(hC.province),
cB='';

if(bo.length===1)
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ak.find('div.set_city').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name','\u8bf7\u9009\u62e9').html('\u8bf7\u9009\u62e9');
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item">'+bo[i].name+'</p>';
}
}
ak.find('div#city_qmpanel_shadow').html(cB);
ak.find("div[next=city_qmpanel_shadow]").html(hC.city).attr('name',eq);
},

rule:function()
{
return{
click:
{
clk:{sProcess:'click'},
cls:{sProcess:'close'},
showinfo:{bPropagable:false},
chgcountry:{sProcess:'changecountry',bPropagable:false},
chgprovince:{sProcess:'changeprovince',bPropagable:false},
chgcity:{sProcess:'changecity',bPropagable:false}
},
mouseover:
{
rd:{},
qmpanelover:{}
},
mouseout:
{
rdt:{},
qmpanelout:{}
}
};
},

events:function()
{
var ad=this;
return{
click:function(_aoEvent,ah,ao)
{

ad.fireEvent_('click',[_aoEvent,ah,ao]);
return false;
},
close:function(_aoEvent,ah,ao)
{

ad.destroy();
},
showinfo:function(_aoEvent,ah,ao)
{
var
ak=ad.aj.oDom,
qT=ak.$(ah).attr('bind'),
uI=ak.find("div[next="+qT+"]"),
adN=uI.attr("name"),
bt=uI.html();
jc=ak.find("div#"+qT),
gh=uI.attr("_t");


jc.css('display','block');
gh&&clearInterval(gh);
ak.$(ah).addClass("state_selected");

if(qT==="city_qmpanel_shadow")
{
ad.selectDiv(jc.data(0),adN,"name");
}
else
{
var SQ=jc.data(0).childNodes,
_oItem;
al.each(SQ,function(kP,aPz)
{
if(kP.getAttribute("name")===bt)
{
_oItem=kP;
return false;
}
});
if(_oItem)
{
jc.data(0).scrollTop=(_oItem.offsetTop-30)||0;
ak.$(_oItem).addClass("menu_item_hover");
}
}
uI.focus();
},
changecountry:function(_aoEvent,ah,ao)
{
var
ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=aG.attr('name'),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");

ak.find("div[bind='country_qmpanel_shadow']").rmClass("state_selected");
if(aF!=kt.html())
{
ak.find("div[next="+fX+"]").html(aF).attr('name',aF);

if(aF=='\u4e2d\u56fd')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow');
ak.find('div[next=province_qmpanel_shadow]').html('\u5317\u4eac').attr('name','\u5317\u4eac').parent('div.set_province').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name','1280000');

}
else if(aF=='\u5176\u4ed6\u5730\u533a')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ak.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}
}
aG.parent('div.qmpanel_shadow').css("display","none");
gh&&clearInterval(gh);
},
changeprovince:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=aG.attr('name'),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");
ak.find("div[bind='province_qmpanel_shadow']").rmClass("state_selected");
if(aF!=kt.html())
{
ak.find("div[next="+fX+"]").html(aF).attr('name',aF);

var bo=ad.yK(aF),
cB='';

var fr=ak.find('input[un=searchtip]');
fr.attr('value','');
if(bo[0].name=='\u4e0d\u9650')
{
fr.attr('value','');
ad.$.$(fr.data(0).parentNode).css('display','none');
}
else
{
fr.attr('value','\u8bf7\u8f93\u5165\u60a8\u7684\u5730\u5740\u4fe1\u606f');
fr.addClass('graytext');
ad.$.$(fr.data(0).parentNode).css('display','block');
}
if(bo.length===1)
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item">'+bo[i].name+'</p>';
}
}
ak.find('div#city_qmpanel_shadow').html(cB);
aG.parent('div.qmpanel_shadow').css('display','none');
}
gh&&clearInterval(gh);

},
changecity:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom;
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=aG.html(),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");
var fr=ak.find('input[un=searchtip]');
if(aF=='\u4e0d\u9650')
{
fr.attr('value','');
ad.$.$(fr.data(0).parentNode).css('display','none');
}
else
{
fr.attr('value','\u8bf7\u8f93\u5165\u60a8\u7684\u5730\u5740\u4fe1\u606f');
fr.addClass('graytext');
ad.$.$(fr.data(0).parentNode).css('display','block');
fr.css('display','block');
}
ak.find("div[bind='city_qmpanel_shadow']").rmClass("state_selected");
kt.html(aF).attr('name',aG.attr('name'));
aG.parent('div.qmpanel_shadow').css('display','none');
gh&&clearInterval(gh);
},
qmpanelover:function(_aoEvent,ah,ao)
{
var _oDom=ah,
_oItem=ad.aj.oDom.find('p.menu_item');

_oItem.rmClass('menu_item_hover');
_oDom=this.$.$(_oDom);
_oDom.addClass('menu_item_hover');
},
qmpanelout:function(_aoEvent,ah,ao)
{
var _oItem=ad.aj.oDom.find('p.menu_item');

_oItem.rmClass('menu_item_hover');
},
rd:function(_aoEvent,ah,ao)
{
var aK=_aoEvent.originalTarget||_aoEvent.srcElement;

if(aK.nodeName.toLowerCase()==="p")
{

al.$(aK.parentNode).find("p.menu_item").rmClass("menu_item_hover");
al.$(aK).addClass("menu_item_hover");
}
al.$(ah).addClass("hover");
},
rdt:function(_aoEvent,ah,ao)
{
var aK=_aoEvent.originalTarget||_aoEvent.srcElement;
if(aK.nodeName.toLowerCase()==="p")
{
al.$(aK).rmClass("menu_item_hover");
}
al.$(ah).rmClass("hover");
}
};
},

init_:function(ap)
{
if(jD)
{
jD.destroy();
}

var ad=this;
if(!ap||!ap.oDom)
{
ap=ap||{};
ap.oDom=al.$('#bottle_tips');
}
ad.aj=ap;
ad.superEx_(av,"init_",[ap]);

jD=ad;

ad.Jr=ad.$.$('#btlmask');
ad.vy=null;

ad.aOx=function(_aoEvent,ah,ao)
{

clearTimeout(ad.vy);
ad.vy=null;


ad.fireEvent_('timeoff');

ad.jS();
ad.aj.aoConfig.beforeHide&&ad.aj.aoConfig.beforeHide(ad);

ad.fireEvent_('timeoff');
};
}
}
);
}
);

}


);


$.package(


"bottle/ctrl/setting.js",


[

],


function(ay)
{

var $=ay,
al=QMWin;














al.createCtrl(

"PLP.Setting",

{sSuper:'PLP.Frame'},
function(av)
{

var aRx="\u70b9\u51fb\u4fee\u6539\u6f02\u6d41\u74f6\u6635\u79f0",
dw="PLP.Tip",
aJ=al.lib("PLP.Template"),
au=al.lib('PLP.Data'),
aD=al.lib('PLP.Util'),
edP=[],
bcZ=2,
bN='PLP.DCGeneral';

return(
{




qR:function(abD)
{
var ad=this;

au.post(bN,
{
type:'open',
value:abD
},
{
onsuccess:function(cC,aT)
{

ad.$.$("#bottle_paperlist").attr('isshow','true');
ad.destroy();
},

onerror:function(cC,aT)
{
ad.createCtrl('PLP.Tip',{},
{
click:function()
{
this.destroy();
}
}
).showErr(aJ.get('openerr'),
{
delay:2000
}
);
}
}
);
},

bQx:function()
{
var ad=this,
acx=au.get(bN,
{type:'plpopen'}
),
aC=au.get(bN,
{type:"attr"}
);






if(acx)
{
ad.destroy();
}
else
{
if(typeof aC.bTimeout!="undefined"&&aC.bTimeout===true)
{
ad.superEx_(av,"show").aj.oDom.html(aJ.get('openErrorTip'));

}
else
{
ad.superEx_(av,"show").aj.oDom.html(aJ.get('open'));
}
}
return ad;
},
cQS:function()
{
var ad=this;

ad.bXR(true);
},
aRJ:function(ayv)
{
var ad=this;

ad.azm(true,ayv);
},






ZX:function(ar)
{

var ad=this,
aC=au.get(bN,
{
type:"attr"
}),
aUk=(aC&&!aC.recevon)||false,
aQA=(aC&&!aC.plpopen)||false,
bNh=!aUk&&!aQA;
ad.dS=2;
ad.superEx_(av,"show").aj.oDom.html(aJ.get('setting'+ar).replace(
{
tab:2,





normal:bNh,
receive:aUk,
beach:aQA,
tip60:au.get(bN,
{
type:'tip',
value:60
}
),
icon48:au.get(bN,
{
type:'icon',
value:48
}
),
icon40:au.get(bN,
{
type:'icon',
value:40
}
),
name:au.get(bN,
{
type:'attr'
}
).name 
}
));


if(window.gtemptime>0)
{
window.gtemptime=(+new Date())-window.gtemptime;
aD.isdLog({'6':window.gtemptime});
window.gtemptime=-1;
}

return ad;
},

aNg:function()
{
var ad=this,
ak=ad.aj.oDom,
aC=au.get("PLP.DCGeneral",
{
type:"attr"
}
),
gL=(aC&&aC.point)||0,
Xi=gL,
ec=0,
afV=0,
bC=[],
aWc=false,
jc,nv;

if(gL>=10)
{
Xi=gL>=30?30:gL;
ec=Math.floor(Xi/10);
for(var i=1;i<=ec;i++)
{
bC.push({value:i*10});
}
afV=ec*10;

aWc=afV>0?true:false;
ad.superEx_(av,"show").aj.oDom.html(
aJ.get("changePoint").replace
(
{
point:gL,
changetime:10,
items:bC,
canchange:aWc
}
)
);
jc=ak.find("div[un=point]");
jc.addEvent("blur",function()
{
jc=ad.$.$(this);
nv=jc.parent("*").find("div[un=pointlist]");
jc.attr("_t",setInterval(function()
{
clearInterval(jc.attr("_t"));
if(nv.size()>0)
{
if(nv.attr("isscroll")==nv.attr("lastscroll"))
{
nv.attr("isscroll","0").attr("lastscroll","0");
nv.hide();
}
else
{
nv.attr("lastscroll",nv.attr("isscroll"));

jc.focus();
}
}

},200));
});
}
else
{
ad.superEx_(av,"show").aj.oDom.html(
aJ.get("cannotChgPoint").replace({})
);
}
},

cyV:function()
{
var ad=this,
ak=ad.aj.oDom,
aC=au.get(bN,{type:"attr"})||{},
GO=parseInt(aC.skin||0,10),
Bt=['\u7ecf\u5178','\u5915\u7167','\u5ead\u9662\u79c1\u8bed','\u65f6\u95f4\u82b1\u56ed'];



if(GO==bcZ)
{
GO=0;
}
else
{
GO+=1;
}
ak.addClass("senceDemo"+GO);
ad.superEx_(av,"show").aj.oDom.html(
aJ.get("changesence").replace(
{
nowpage:GO,
subject:Bt[parseInt(GO,10)]

}
));
ak.find("div.changeSencePannel").focus();

},

bsI:function(aiz,atw)
{
var ad=this,
ak=ad.aj.oDom,
aqh=ak.find("div[un='chgpage']"),
ejR=ak.find("div.changeSenceBox"),
Bt=['\u7ecf\u5178','\u5915\u7167','\u5ead\u9662\u79c1\u8bed','\u65f6\u95f4\u82b1\u56ed'],
aLk="a[direction='left']",
elf="a[direction='right']";
aqh.attr("nowpage",aiz);
ak.rmClass("senceDemo"+atw).addClass("senceDemo"+aiz);



if(aD.supportTransition())
{
ak.find("div.changeSenceBox").rmClass("sence_skin"+atw).addClass("sence_skin"+aiz);
}
else
{
var bad=[0,-620,-1240],
cqB=bad[aiz]-bad[atw],
crE=ak.find("div.changeSencePreview")
czy=bad[atw];
buQ=0;
QMWin.animate(null,{
vDuration:400,
sEasing:"Linear",
onstep:function(eC)
{
buQ=Math.floor(czy+eC*cqB);
crE.css("backgroundPositionX",buQ+"px");
},
oncomplete:function()
{
ak.find("div.changeSenceBox").rmClass("sence_skin"+atw).addClass("sence_skin"+aiz);
}
});
}

ak.find("div[un='sencesubject']").html(Bt[aiz]);






},
azm:function(cH,ayv)
{

var ad=this,
ak=ad.aj.oDom,
aZr='',
aF=au.get(bN,
{
type:'attr'
}
)||{},
Fo=ad.$.htmlDecode(aF.name),
gL=aF.point||0,
aeM=aF.lonely;

ad.dS=0;
if(Fo==='')
{
aZr='btn_nickname_dis';
}



ad.superEx_(av,"show").aj.oDom.html(aJ.get('setnamecontainer').replace({tab:1,composeflag:cH})).find('.iframecontainer').html(aJ.get('setname').replace({dis:aZr,composeflag:cH,point:gL,lonely:aeM}));



if(ayv===true)
{
ak.find('input#plpnickname').focus();
}

ak.find('input#plpnickname').attr('value',Fo);










var bFc=(aF.sex=="\u7537"?0:1);
ak.find("div[next='my_qmpanel_shadow_female']").html(aD.hashage(aF.sex,aF.age)).attr('name',aF.age).attr('sex',bFc);
if(aF.city)
{
ad.zN(aF.city);
}
else
{


ad.zN(32768);
}


ak.find("div[un='photoiframediv']").insertIframe(
{
style:"width:100%;height:100%;display:none;",
allowtransparency:true,
frameborder:0,
un:"photoiframe",
id:"photoiframe",
src:['/cgi-bin/bottle_setting?t=bottle_face&mode=iconget&sid=',al.sid(),"&plpfrom=",aD.plpfrom()].join(''),

onload:function(Fp)
{
if(aF.showicon=="false"||aF.showicon==false)
{
if(this.contentWindow.window&&this.contentWindow.window.document)
{
var Cj=this.contentWindow.window.document.getElementById("mask");
Cj&&(Cj.style.display="block");
}
}
var aDR;
if(this.contentWindow.window&&this.contentWindow.window.document)
{
aDR=this.contentWindow.window.document.getElementById("showInfo");
if(aDR)
{
if(aF.showicon==true||aF.showicon=="true")
{
aDR.checked=true;
ad.aTt(true);
}
else
{
ad.aTt(false);
}
aDR.onclick=function()
{
var eU=this.checked;
if(typeof eU=="boolean")
{
ad.aTt(eU);
}
}
}
}
ak.find("iframe[un='photoiframe']").show();
ak.find("div[un='photoiframeloading']").hide();

this.contentWindow.onseticon=function(HD)
{

if(HD)
{
au.post(bN,
{
type:'seticon',
value:HD
});
ad.destroy();


ad.$.$('#bottle_favour a[ck="gogarden"] img').attr('src',HD["40"]);
}
};
this.contentWindow.setSaveBtn=function(PK)
{
var	Jh=ak.find("a[tmpck='saveinfo']");
Jh[PK?"rmClass":"addClass"]("btn_disable");
if(PK)
{
Jh.attr("ck","saveinfo").rmClass("btn_disable");
}
else
{
Jh.addClass("btn_disable").rmAttr("ck");
ak.find("div#uploadingImgFail").hide();
}
!PK&&(ad.cyW=true);
};
this.contentWindow.showSavePhotoErr=function()
{
var	Jh=ak.find("a[tmpck='saveinfo']");
Jh.html("\u91cd\u8bd5").rmClass("btn_disable");
ak.find("div#uploadingImgFail").show();
};
this.contentWindow.addClass=function()
{
ak.find("div[un='photoiframediv']").addClass("photoCutiframe");
};
this.contentWindow.setPhotoStatus=function(Oq)
{
ad.aiA=Oq;







};
}
},'afterBegin'
);
setTimeout(function(){

ad.$.$("#bottle_paperlist").attr('isshow','false');
},50);





dZP=al.createHidediv({
oTopContainer:ad.aj.oDom.find("#country_select_div"),
oContainer:ad.aj.oDom.find("div.select_content[next='country_qmpanel_shadow']"),
oItems:ad.aj.oDom.$("#country_qmpanel_shadow"),
oItemAttr:['name'],
sItemFlag:"[un='hidediv']",
sGuessHighLightClass:'menu_item_hover',
fOnContainerChange:ad.events().changecountryTest,
remember:true
});

cgN=al.createHidediv({
oTopContainer:ad.aj.oDom.find("#province_select_div"),
oContainer:ad.aj.oDom.find("div.select_content[next='province_qmpanel_shadow']"),
oItems:ad.aj.oDom.$("#province_qmpanel_shadow"),
oItemAttr:['name'],
sItemFlag:"[un='hidediv']",
sGuessHighLightClass:'menu_item_hover',
fOnContainerChange:ad.events().changeprovinceTest,
remember:true
});

ebE=al.createHidediv({
oTopContainer:ad.aj.oDom.find("#city_select_div"),
oContainer:ad.aj.oDom.find("div.select_content[next='city_qmpanel_shadow']"),
oItems:ad.aj.oDom.$("#city_qmpanel_shadow"),
oItemAttr:['name'],
sItemFlag:"[un='hidediv']",
sGuessHighLightClass:'menu_item_hover',
fOnContainerChange:function(){},
remember:true
});
ad.alH=function(_oDom){
ad.aj.oDom.find("div."+_oDom.attr('next')).hide();
ad.aj.oDom.find("div.qm_select").attr('display','');
};
ad.aj.oDom.find('div[next=my_qmpanel_shadow_female]').addEvent('blur',function(){
var _oDom=this;

_oDom=ad.$.$(_oDom);

var Tx=_oDom.parent('div.qm_select'),
aK=Tx.find('div[onscroll]');

_oDom.attr('_t',setInterval(function(){
if(aK.size()>0)
{
if(aK.attr('isscroll')!=aK.attr('lastscroll'))
{
aK.attr('lastscroll',aK.attr('isscroll'));
clearInterval(_oDom.attr('_t'));
_oDom.focus();
}
else
{
aK.attr('name','0');
aK.attr('lastscroll','0');
ad.alH(_oDom);
clearInterval(_oDom.attr('_t'));
}
}
else
{
ad.alH(_oDom);
clearInterval(_oDom.attr('_t'));
}
},200));


});


ad.aj.oDom.find('div.sex_select_div').addEvent('blur',function(){
var _oDom=this.nextSibling;

_oDom=ad.$.$(_oDom);

var Tx=_oDom.parent('div.qm_select'),
aK=Tx.find('div[onscroll]');

_oDom.attr('_t',setInterval(function(){
if(aK.size()>0)
{
if(aK.attr('isscroll')!=aK.attr('lastscroll'))
{
aK.attr('lastscroll',aK.attr('isscroll'));
clearInterval(_oDom.attr('_t'));
_oDom.focus();
}
else
{
aK.attr('name','0');
aK.attr('lastscroll','0');
ad.alH(_oDom);
clearInterval(_oDom.attr('_t'));
}
}
else
{
ad.alH(_oDom);
clearInterval(_oDom.attr('_t'));
}
},200));







});



var _oDom=ad.aj.oDom,
bH=_oDom.find('input#showInfo'),
bi=_oDom.find("div.pannel_content>a"),
aEC=_oDom.find("label[for=showInfo]"),
ayz=_oDom.find("input[ck='setInfo']"),
pW=_oDom.find('div.bottle_mask')
wF=_oDom.find('input[type=text]').data(0);


if(aF.showicon!=="true"&&aF.showicon!==true)
{

aEC.addClass('graytext');


ayz.rmAttr('checked');
}
else
{

aEC.rmClass('graytext');

ayz.attr('checked',true);
}











ad.$.$('div#bottle_favour img.selficon').attr('src',au.get(bN,
{
type:'icon',
value:40
}
));



if(window.gtemptime>0)
{
window.gtemptime=(+new Date())-window.gtemptime;
aD.isdLog({'6':window.gtemptime});
window.gtemptime=-1;
}

return ad;
},

show:function(ar)
{
var ad=this,
ak=ad.aj.oDom;
ak.rmClass("senceDemo0").rmClass("senceDemo1")
.rmClass("senceDemo2").rmClass("senceDemo3");
switch(ar)
{
case'open':
ad.bQx();
break;
case'iconopen':
ad.azm();
break;
case'nameopen':
ad.aRJ(true);
break;
case'setting':
ad.ZX("");
break;
case'name':
ad.azm();
break;
case'changepoint':
ad.aNg();
break;
case'changesence':
ad.cyV();
default:
break;
}
return ad;
},








aZq:function(ly)
{
var ad=this,
$=ad.$,
_oDom=ad.aj.oDom,
anX=_oDom.find('.nninput'),
ew=anX.find('input'),
aVK=_oDom.find('.nndiv'),
dW=aVK.find('.v_nickname'),
ayi=anX.find('a[act="save"]'),
dbh=anX.find('a[act="cancel"]');
switch(ly)
{
case'modify':
aVK.hide();
anX.show();
var HF=$.htmlDecode(dW.html()),
bH=ew.data(0);
bH.value=HF;
bH.select();
ayi.rmClass('btn_nickname_dis');
break;
case'save':
if(!ayi.hasClass('btn_nickname_dis'))
{



var ahr=$.$("#plpnickname"),
fU=ahr.attr('value'),
iD=_oDom.find('div[next=my_qmpanel_shadow_female]').attr('name'),
gV=_oDom.find('div[next=my_qmpanel_shadow_sex]').attr('name')
eq=_oDom.find('div[next=city_qmpanel_shadow]').attr('name');







if(gV=='\u7537')
{
iD=_oDom.find('div[next=my_qmpanel_shadow_male]').attr('name');
}


fU=fU.substr(0,10);

au.post(bN,
{
type:'setname',
value:{
'name':fU,
'age':iD,
'sex':gV,
'city':eq
}
});


ad.ZX("");




var rG='';
if($.htmlEncode(fU).length>8)
{
rG='...';
}
$.$("#bottle_favour a[ck=shownamesetting]").html(aJ.get('favourList').replace({selfname:$.htmlEncode(fU.substr(0,8))+rG},'selfname'));
}
break;
case'cancel':


ad.ZX("");
break;
case'savetocompose':
if(!ayi.hasClass('btn_nickname_dis'))
{
var ahr=$.$("#plpnickname"),
fU=ahr.attr('value'),
iD=_oDom.find('div[next=my_qmpanel_shadow_female]').attr('name'),
gV=_oDom.find('div[next=my_qmpanel_shadow_female]').attr('sex'),
eq=_oDom.find('div[next=city_qmpanel_shadow]').attr('name');





gV=(gV=='0'?"\u7537":"\u5973");
fU=fU.substr(0,10);

var yU=_oDom.find('input#showInfo').attr('checked');


au.post(bN,
{
type:'setname',
value:{
'name':fU,
'showicon':yU,
'age':iD,
'sex':gV,
'city':eq
}
});
var aC=au.get(bN,{type:"attr"})||{},
aeM=_oDom.find("input#onlinechk").attr("checked");
if(aC.lonely!==aeM)
{
au.post("PLP.DCGeneral",
{
type:"setlonely",
settype:aeM?1:0
});
}



var rG='';
if(fU.length&&fU.length>6)
{
rG='...';
}

fU=/^[a-z\s]+$/gi.test(fU)?fU:(fU.substr(0,6)+rG);

$.$("#bottle_favour a[ck=shownamesetting]").html(aJ.get('favourList').replace({selfname:$.htmlEncode(fU)},'selfname'));

ad.destroy();
}
break;
case'canceltocompose':
ad.destroy();
break;
case'check':

var bCn=_oDom.find("a[act=save]"),
bH=_oDom.find("input#plpnickname");

bCn[bH.attr('value').length?'rmClass':'addClass']('btn_nickname_dis');
break;
}
},

dxS:function(gV)
{
var ad=this,
_oDom=ad.aj.oDom;

_oDom.find("div[next=my_qmpanel_shadow_sex]").html(gV).attr('name',gV);

if(gV=='\u5973')
{
_oDom.find("div[bind=my_qmpanel_shadow_female]").css('display','block');

_oDom.find("div[bind=my_qmpanel_shadow_male]").css('display','none');

}
if(gV=='\u7537')
{
_oDom.find("div[bind=my_qmpanel_shadow_female]").css('display','none');

_oDom.find("div[bind=my_qmpanel_shadow_male]").css('display','block');

}
},

dAi:function(gV,iD)
{
var ad=this,
_oDom=ad.aj.oDom,
fX='';

if(gV=='\u5973')
{
fX='my_qmpanel_shadow_female';
}
if(gV=='\u7537')
{
fX='my_qmpanel_shadow_male';
}

_oDom.find("div[next="+fX+"]").html(aD.hashage(gV,iD)).attr('name',iD);
_oDom.find("div#my_qmpanel_shadow_female").hide();
},

zN:function(eq)
{

var ad=this,
_oDom=ad.aj.oDom;

var hC=aD.hashcity(eq);

_oDom.find("div[next=country_qmpanel_shadow]").html(hC.country).attr('name',hC.country);

if(hC.country=='\u4e2d\u56fd')
{
ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow');
ad.aj.oDom.find('div[next=province_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_province').css('display','block');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_city').css('display','block');
}
if(hC.country=='\u5176\u4ed6\u5730\u533a')
{
ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ad.aj.oDom.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}

_oDom.find("div[next=province_qmpanel_shadow]").html(hC.province).attr('name',hC.province);

var bo=ad.yK(hC.province),
cB='';

if(bo.length===1)
{
ad.aj.oDom.find('div.set_city').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ad.aj.oDom.find('div.set_city').css('display','block');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name','\u8bf7\u9009\u62e9').html('\u8bf7\u9009\u62e9');
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">'+bo[i].name+'</p>';
}
}

ad.aj.oDom.find('div#city_qmpanel_shadow').html(cB);

_oDom.find("div[next=city_qmpanel_shadow]").html(hC.city).attr('name',eq);
},

aOA:function(aRH,lP)
{
var ad=this,
$=ad.$,
HF=$.htmlDecode(lP.hide().html());

if(HF==aRx)
{
HF="";
}
var bH=aRH.show().data(0);
bH.value=HF;
bH.select();
bH.onblur=function()
{
var fU=$.trim(aRH.hide().attr('value'));


au.post(bN,
{
type:'setname',
value:fU
});


lP.html($.htmlEncode(fU||aRx)).show();
};
},

yK:function(aF)
{

var ad=this,
$=ad.$,
_oDom=ad.aj.oDom,
_oInfo=aD.getprovinceinfo();

var AB=_oDom.find('div[next=country_qmpanel_shadow]').attr('name');

if(_oInfo[AB])
{
return _oInfo[AB][aF];
}
else
{
return[];
}
},


Mc:function(uY)
{
ad=this;
var gL=parseInt(uY,10);


var zR=ad.$.$("div#toolbar a.ico_position");
if(gL>=0)
{
zR.css('display','block');
}
else
{
zR.css('display','none');
}
},

destroy:function(cA,at)
{
var ad=this,
cz=[cA,at];
au.addEvent(bN,'change',ad.iz,true);
if(ad.aj.type=='icon'&&!cA)
{
cz=['PLP.Setting',{type:'setting'}];

setTimeout(function(){

ad.$.$("#bottle_paperlist").attr('isshow','false');
},50);
}
else
{

ad.$.$("#bottle_paperlist").attr('isshow','true');
}

return ad.superEx_(av,"destroy",cz);
},

dJN:function()
{


this.destroy('PLP.Setting',{type:'icon'});

this.$.$("#bottle_paperlist").attr('isshow','false');
},

dJL:function()
{
var ad=this,
$=this.$;

ad.aj.oDom.find("div.pannel_content").html(aJ.get("newShut"));

},
aTt:function(afG)
{
var ad=this,
ak=ad.aj.oDom,
Jh=ak.find("a[tmpck='saveinfo']"),
ew=ak.find('input#showInfo'),
yB=ak.find("div.pannel_content>a"),
fz=ak.find('div.bottle_mask'),
tM=ak.find("label[for=showInfo]"),
aW=window.frames["photoiframe"]&&window.frames["photoiframe"].document,
Cu,Cj;
if(!aW)
{
Cu=ak.find("iframe[un=photoiframe]");
aW=Cu.data(0)&&Cu.data(0).contentDocument;
}
if(aW)
{
Cj=aW.getElementById("mask");
}
if(!afG)
{
Jh.attr("showicon","false");
tM.addClass('graytext');
Cj&&(Cj.style.display="block");
}
else
{
Jh.attr("showicon","true");
tM.rmClass('graytext');
Cj&&(Cj.style.display="none");
}
},
rule:function()
{
return{
click:
{

chgname:{sProcess:'changeName'},

setIcon:{},
setInfo:{},
setName:{},
rtsetting:{sProcess:'returnsettin'},


saveinfo:{sProcess:'saveInfo',bPropagable:false},


mdfname:{sProcess:'modifyname'},
shut:{},
chgname2:{sProcess:'changename2'},

showinfo:{},
chgsex:{sProcess:'changesex',bPropagable:false},
chgage:{sProcess:'changeage',bPropagable:false},




cls:{},
rtn:{sProcess:"returnto"},

open:{},
tab:{},

setreceive:{sProcess:"setReceive",bPropagable:false},
showpoint:{sProcess:"showPoint",bPropagable:false},
chgpoint:{sProcess:"changePoint",bPropagable:false},
gochange:{sProcess:"goChange",bPropagable:false},
rtychgpoint:{},

savephoto:{sProcess:"savePhoto",bPropagable:false},
savesence:{sProcess:"saveSence",bPropagable:false},
movesence:{sProcess:"moveSence",bPropagable:false},
selectsence:{sProcess:"selectSence"},

showchgpoint:{sProcess:"showChgPoint",bPropagable:false}
},

mouseover:
{
qmpanelover:{}
},
mouseout:
{
qmpanelout:{}
},

keyup:
{
count:{},
keyupmovesence:{bPropagable:false}
},

keypress:
{
enter:{}
}
};
},

events:function()
{
var ad=this,
$=this.$;
return{
returnto:function(_aoEvent,ah,ao)
{
ad.destroy("PLP.PaperList");
},

tab:function(_aoEvent,ah,ao)
{
var wv=ah.getAttribute("tabid"),
bsz=function(Fk)
{
ad.dS=Fk;
ad.aiA=0;
ad.cyW=false;
switch(Fk)
{
case'1':
ad.aRJ(false);
break;
case'2':
ad.ZX('');
break;
}
},cb;

if(ad.aiA!=0)
{
cb=ad.createCtrl("PLP.Tip",{},
{
click:function(_aoEvent,ah,ao)
{
var aG=ad.$.$(_aoEvent.originalTarget||_aoEvent.srcElement),
oX=aG.attr("name");
if(oX==="n")
{
cb.destroy();
}
else if(oX==="y")
{
cb.destroy();
bsz(wv);
}
}
});
cb.showOldPlain(aJ.get("savephotosetting").replace({}),
{
delay:-1,
className:"d_tip"
});
}
else
{
bsz(wv);

}

},

changeName:function(_aoEvent,ah,ao)
{
var ew=$.$('input',ah.parentNode),
dW=$.$(ah);
ad.aOA(ew,dW);
},

changename2:function(_aoEvent,ah,ao)
{
var cW=ah.parentNode,
ew=$.$('input',cW),
bzs=$.$('strong',cW).hide();
ad.aOA(ew,bzs);
},

count:function(_aoEvent,ah,ao)
{
ad.aZq('check');
},

enter:function(_aoEvent,ah,ao)
{
if(_aoEvent.keyCode==13)
{
ah.blur();
}
},
saveInfo:function(_aoEvent,ah,ao)
{
var	aC=au.get(bN,{type:"attr"}),
ak=ad.aj.oDom,
aG=ak.$(ah),
ahr=ak.find("#plpnickname"),
fU=ahr.attr('value'),
iD=ak.find('div[next=my_qmpanel_shadow_female]').attr('name'),
gV=ak.find('div[next=my_qmpanel_shadow_female]').attr('sex')
eq=ak.find('div[next=city_qmpanel_shadow]').attr('name'),

eU=aG.attr("showicon")=="true",
aeM=ak.find("input#onlinechk").attr("checked");
gV=(gV=='0'?"\u7537":"\u5973");
fU=fU.substr(0,10);
if(aC.name!==al.htmlEncode(fU)||aC.showicon!=eU||aC.age!==iD||aC.sex!==gV||aC.city!==eq)
{
au.post(bN,
{
type:'setname',
value:{
'name':fU,
'showicon':eU,
'age':iD,
'sex':gV,
'city':eq
}
});
}
if(aC.lonely!==aeM)
{
au.post("PLP.DCGeneral",
{
type:"setlonely",
settype:aeM?1:0
});
}

if(ad.aiA==3||ad.aiA==4)
{
var aW=window.frames["photoiframe"]&&window.frames["photoiframe"].document,
Cu,Fy;
if(!aW)
{
Cu=ak.find("iframe[un=photoiframe]");
aW=Cu.data(0)&&Cu.data(0).contentDocument;
}
if(aW)
{
Fy=aW.getElementById("submitbtn");
Fy&&Fy.click();
}
aG.addClass("btn_disable").rmAttr("ck").html("\u4fdd\u5b58\u4e2d");
}
else
{
ad.destroy();
}

},
modifyname:function(_aoEvent,ah,ao)
{
var lF=$.$(ah).attr('act');
ad.aZq(lF);
},

showinfo:function(_aoEvent,ah,ao)
{
var qT=$.$(ah).attr('bind'),
_oDom=ad.aj.oDom,
aK=_aoEvent.originalTarget||_aoEvent.srcElement;


_oDom.find("div#"+qT).css('display','block');

},

qmpanelover:function(_aoEvent,ah,ao)
{
var _oDom=ah,
_oItem=ad.aj.oDom.find('p.menu_item');

_oItem.rmClass('menu_item_hover');
_oDom=this.$.$(_oDom);
_oDom.addClass('menu_item_hover');
},
qmpanelout:function(_aoEvent,ah,ao)
{
var _oItem=ad.aj.oDom.find('p.menu_item');

_oItem.rmClass('menu_item_hover');
},

setReceive:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ad.$.$(ah),
bk=ah.getAttribute("id");

if(aG.attr("result")=="false")
{
aG.attr("result","true").attr("checked",true);
if(bk=="receive")
{
var bbo=ak.find("input#beach");
if(bbo.attr("result")=="true")
{
bbo.attr("checked",false).attr("result","false");
}
}
else if(bk=="beach")
{
var aYL=ak.find("input#receive");
if(aYL.attr("result")=="true")
{
aYL.attr("checked",false).attr("result","false");
}
}
}
else
{
aG.attr("checked",false).attr("result","false");
}
},

showPoint:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
jc=ak.find("div[un=point]"),
ke=jc.html(),
nv=ak.find("div[un=pointlist]");
nv.css("display","block");
nv.find("p[value="+ke+"]").addClass("menu_item_hover");
ak.find("a[ck='rtychgpoint']").html("\u5151\u6362").attr("ck","gochange");
ak.find("div[un='rtydiv']").hide();
jc.focus();
},

changePoint:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
jc=ak.find("div[un=point]"),
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement),
gL=aG.attr("value"),
nv=ak.find("div[un=pointlist]");
nv.hide();
jc.html(gL);
},

goChange:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(ah),
jc=ak.find("div[un=point]"),

ke=jc.html(),
aC=au.get("PLP.DCGeneral",
{
type:"attr"
}
),

gL=(aC&&aC.point)||0;
aG.html("\u6b63\u5728\u5151\u6362").addClass("btn_disable");
au.post("PLP.DCGeneral",
{
type:"chgpoint",
point:ke
},
{
oncomplete:function(cC,aT)
{
if(aT&&aT.success&&aT.success==1||QMWin.uin()==616274754||QMWin.uin()==1405947014)
{

var xp=ad.$.$("div#toolbar a[act=Pick]"),
Ck=xp.find("div[un=oldpoint]"),
Dm=ad.$.$("div#profilePanel a[ck=showchgpoint]"),
YC=Dm.find("span.num"),
bQY=au.get('PLP.DCGeneral',
{type:'picking'}
),
vh=parseInt(gL)-parseInt(ke),
TR=parseInt(bQY)+parseInt(ke),
wP;

xp.insert(aJ.get("addPoint").replace({point:ke}),"beforeEnd");
wP=xp.find("div[un=newpoint]");


if(aD.supportTransition()&&QMWin.uin()!=1405947014)
{
setTimeout(function()
{

wP.addClass("newExchange");
},100);

setTimeout(function()
{
wP.rmClass("newExchange");
if(Ck.size()>0)
{
Ck.html(TR);
}
else
{
xp.html(['<div un="oldpoint" class="numBg"><p>',TR,'</p></div>'].join(""));
}

au.post("PLP.DCGeneral",
{
type:"picking",
value:TR
}
);
},400);
}
else
{
var atG=parseInt(wP.css("opacity"),10);
al.animate(null,{
vDuration:"normal",
sEasing:"Linear",
onstep:function(eC)
{
var Xr=Math.floor(-80+55*eC),
sF=atG*(1-eC);
wP.css({top:Xr,opacity:sF});
},
oncomplete:function()
{
setTimeout(function()
{
if(Ck.size()>0)
{
Ck.html(TR);
}
else
{
xp.html(['<div un="oldpoint" class="numBg"><p>',TR,'</p></div>'].join(""));
}

au.post("PLP.DCGeneral",
{
type:"picking",
value:TR
}
);
},100);
}
});
}


Dm.attr("title","\u79ef\u5206\uff1a"+vh);
YC.html("("+vh+")");

if(gL>=30&&vh<30)
{
ad.$.$("span[un=pointico]").rmClass("ico_level_2").addClass("ico_level_1");
}



au.post("PLP.DCGeneral",
{
type:"attr",
value:
{
point:vh,
level:vh>30?2:1
}
}
);


ad.Mc(vh);

ad.createCtrl('PLP.Tip',{},{}).showOldInfo(
aJ.get("chgpointsuc").replace({point:ke}),
{
delay:3000
});
ad.destroy();
}
else
{
aG.html("\u91cd\u8bd5").rmClass("btn_disable").attr("ck","rtychgpoint");
ak.find("div[un=rtydiv]").show();

}
}
});


},



rtychgpoint:function(_aoEvent,ah,ao)
{
var ad=this,
ak=ad.aj.oDom,
aG=ak.$(ah);
aG.attr("ck","gochange");
ak.find("div[un=rtydiv]").hide();
ak.find("a[ck=gochange]").fireEvent("click");
},

savePhoto:function(_aoEvent,ah,ao)
{
var ad=this,
ak=ad.aj.oDom,
cno=ak.find("div#uploadingImgFail"),
aG=ak.$(ah),

aW=window.frames["photoiframe"]&&window.frames["photoiframe"].document;
if(!aW)
{
var Cu=ak.find("iframe[un=photoiframe]");
aW=Cu.data(0)&&Cu.data(0).contentDocument;
}
cno.hide();
if(aW)
{

aG.html("\u6b63\u5728\u4fdd\u5b58").addClass("btn_disable");
var Fy=aW.getElementById("submitbtn");
Fy&&Fy.click();
}
},
saveSence:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(ah),
aHJ=ak.find("div[un='chgpage']").attr("nowpage"),
cwt=["\u7ecf\u5178","\u5915\u9633","\u65f6\u95f4\u82b1\u56ed"],
cJN=cwt[parseInt(aHJ,10)],
cwB=function()
{
ak.find("div[un='savesenceloading']").show();
aG.rmAttr("ck").addClass("btn_disable");
ak.find("a[ck='movesence']").rmAttr("ck");
ak.find("div[ck='selectsence']").rmAttr("ck");
ak.find("div[ku='keyupmovesence']").rmAttr("ku");
aD.changeSkin(aHJ,
function()
{
ad.destroy();
au.post(bN,
{
type:'setskin',
value:{
'skin':aHJ
}
});
au.post(bN,{type:"attr",value:{skin:aHJ}});
ad.createCtrl(dw,{},
{
click:function()
{
this.destroy();
}
}).showOldInfo(aJ.get("chgskinsuc").replace({skinname:cJN}),{delay:3000});
});
},
fT;

cwB();


},
moveSence:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(ah),
aqh=ak.find("div[un='chgpage']"),
aHT=aqh.attr("nowpage"),
cqi=aG.attr("direction"),
cf=parseInt(aHT,10)+(cqi==="left"?-1:1);
if(cf===-1)
{
cf=bcZ;
}
else if(cf===bcZ+1)
{
cf=0;
}
ak.find("a.pageActive").rmClass("pageActive").addClass("pageInactive");
ak.find("a[page='"+cf+"']").rmClass("pageInactive").addClass("pageActive")

ad.bsI(cf,parseInt(aHT,10));
},
keyupmovesence:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
eg=_aoEvent.keyCode;
if(ak.find("div[ku='keyupmovesence']").size()>0)
{
if(eg===37)
{
ak.find("div[un='chgpage'] a[direction='left']").fireEvent("click");
}
else if(eg===39)
{
ak.find("div[un='chgpage'] a[direction='right']").fireEvent("click");
}
else if(eg===13)
{
ak.find("a[ck='savesence']").fireEvent("click");
}
}
},
selectSence:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement),
aqh=ak.find("div[un='chgpage']"),
aHT=aqh.attr("nowpage"),
mh=aG.attr("page"),
cf=parseInt(mh,10);
if(mh)
{
ak.find("a.pageActive").rmClass("pageActive").addClass("pageInactive");
aG.rmClass("pageInactive").addClass("pageActive");

ad.bsI(cf,parseInt(aHT,10));
}
},
showChgPoint:function(_aoEvent,ah,ao)
{
ad.show("changepoint");
},
changesex:function(_aoEvent,ah,ao)
{
var ah=$.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=ah.attr('name'),
fX=ah.parent('div.qmpanel_shadow').attr('id'),
_oDom=ad.aj.oDom;

_oDom.find("div[next="+fX+"]").html(aF).attr('name',aF);

if(aF=='\u5973')
{
_oDom.find("div[bind=my_qmpanel_shadow_female]").css('display','block');

_oDom.find("div[bind=my_qmpanel_shadow_male]").css('display','none');

}
if(aF=='\u7537')
{
_oDom.find("div[bind=my_qmpanel_shadow_female]").css('display','none');

_oDom.find("div[bind=my_qmpanel_shadow_male]").css('display','block');

}
},

changeage:function(_aoEvent,ah,ao)
{
var ah=$.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=ah.attr('name'),
gV=ah.attr("sex"),
fX=ah.parent('div').parent('div.qmpanel_shadow').attr('id'),
_oDom=ad.aj.oDom;

if(!aF)
{
var
dW=_oDom.find("div[next='my_qmpanel_shadow_female']"),
bGD=dW.attr("_t");
clearInterval(bGD);
dW.data(0).focus();
return;
}
aF=aF.split(',');
aF=parseInt((Math.random()*100),10)%15+parseInt(aF[0],10);

_oDom.find("div[next="+fX+"]").html(ah.html()).attr('name',aF).attr("sex",gV);
_oDom.find("div#my_qmpanel_shadow_female").hide();
},

changecountryTest:function(bVV,VW)
{

var fX="country_qmpanel_shadow",
_oDom=ad.aj.oDom;

if(VW=='\u4e2d\u56fd')
{

ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow');
ad.aj.oDom.find('div[next=province_qmpanel_shadow]').html('\u5317\u4eac').attr('name','\u5317\u4eac').parent('div.set_province').css('display','block');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name','1280000');

if(ad.clm!==true)
{
cgN=al.createHidediv({
oTopContainer:ad.aj.oDom.find("#province_select_div"),
oContainer:ad.aj.oDom.find("div.select_content[next='province_qmpanel_shadow']"),
oItems:ad.aj.oDom.$("#province_qmpanel_shadow"),
oItemAttr:['name'],
sItemFlag:"[un='hidediv']",
sGuessHighLightClass:'menu_item_hover',
fOnContainerChange:ad.events().changeprovinceTest,
remember:true
});
ad.clm=true;
}



}
if(VW=='\u5176\u4ed6\u5730\u533a')
{
ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ad.aj.oDom.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}

},

changecountry:function(_aoEvent,ah,ao)
{

var ah=$.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=ah.attr('name'),
fX=ah.parent('div.qmpanel_shadow').attr('id'),
_oDom=ad.aj.oDom;

if(aF!=_oDom.find("div[next="+fX+"]").html())
{
_oDom.find("div[next="+fX+"]").html(aF).attr('name',aF);

if(aF=='\u4e2d\u56fd')
{
ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow');
ad.aj.oDom.find('div[next=province_qmpanel_shadow]').html('\u5317\u4eac').attr('name','\u5317\u4eac').parent('div.set_province').css('display','block');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name','1280000');


}
if(aF=='\u5176\u4ed6\u5730\u533a')
{
ad.aj.oDom.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ad.aj.oDom.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}
}

},
changeprovinceTest:function(bVV,VW)
{
var fX="province_qmpanel_shadow",
_oDom=ad.aj.oDom;




var bo=ad.yK(VW),
cB='';

if(bo.length===1)
{
ad.aj.oDom.find('div.set_city').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ad.aj.oDom.find('div.set_city').css('display','block');

ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">'+bo[i].name+'</p>';
}
}

ad.aj.oDom.find('div#city_qmpanel_shadow').html(cB);
},

changeprovince:function(_aoEvent,ah,ao)
{

var ah=$.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=ah.attr('name'),
fX=ah.parent('div.qmpanel_shadow').attr('id'),
_oDom=ad.aj.oDom;
if(aF!=_oDom.find("div[next="+fX+"]").html())
{
_oDom.find("div[next="+fX+"]").html(aF).attr('name',aF);

var bo=ad.yK(aF),
cB='';

if(bo.length===1)
{
ad.aj.oDom.find('div.set_city').css('display','none');
ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ad.aj.oDom.find('div.set_city').css('display','block');

ad.aj.oDom.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item" un="hidediv">'+bo[i].name+'</p>';
}
}

ad.aj.oDom.find('div#city_qmpanel_shadow').html(cB);

ah.parent('div.qmpanel_shadow').css('display','none');
}
},


changecity:function(_aoEvent,ah,ao)
{

var ah=$.$(_aoEvent.originalTarget||_aoEvent.srcElement);
aF=ah.html(),
fX=ah.parent('div.qmpanel_shadow').attr('id'),
_oDom=ad.aj.oDom;

_oDom.find("div[next="+fX+"]").html(aF).attr('name',ah.attr('name'));

ah.parent('div.qmpanel_shadow').css('display','none');
},

shut:function()
{


var ak=ad.aj.oDom,
bSv=ak.find("input#receive"),
aVo=!bSv.attr("checked"),
bVD=ak.find("input#beach"),
aUQ=ak.find("input#normal").attr("checked"),
Jf=!bVD.attr("checked"),
aC=au.get(bN,
{
type:'attr'
}),
UY=0,
bQQ=aC.recevon&&aC.plpopen,
cO;


if((aVo!=aC.recevon)||(Jf!=aC.plpopen)||bQQ!=aUQ)
{

if(aUQ)
{
UY=0;
cO=aJ.get("openBeach");
}
else if(!Jf)
{
UY=2;
cO=aJ.get("closeBeach");
}
else if(!aVo)
{
UY=1;
cO=aJ.get("closeReceive");
}
ad.createCtrl("PLP.Tip").showOldInfo(
cO,
{
delay:3000
}
);
au.post(bN,
{
type:'setunannoy',
settype:UY
}
);
}
ad.destroy();



},


cls:function()
{
if(ad.aiA!=0)
{
var cb=ad.createCtrl("PLP.Tip",{},
{
click:function(_aoEvent,ah,ao)
{
var aG=ad.$.$(_aoEvent.originalTarget||_aoEvent.srcElement),
oX=aG.attr("name");
if(oX==="n")
{
cb.destroy();
}
else if(oX==="y")
{
cb.destroy();
ad.destroy();
}
}
});
cb.showOldPlain(aJ.get("savephotosetting").replace({}),
{
delay:-1,
className:"d_tip"
});

}
else
{
ad.destroy();
}
},






open:function()
{
ad.qR(true);
},

setInfo:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
Jh=ak.find("a[tmpck='saveinfo']");
ew=ak.find('input#showInfo'),
yB=ak.find("div.pannel_content>a"),
fz=ak.find('div.bottle_mask'),
tM=ak.find("label[for=showInfo]");
aW=window.frames["photoiframe"]&&window.frames["photoiframe"].document,
Cu,Cj;
if(!aW)
{
Cu=ak.find("iframe[un=photoiframe]");
aW=Cu.data(0)&&Cu.data(0).contentDocument;
}
if(aW)
{
Cj=aW.getElementById("mask");
}
if(ew.attr('checked')!==true)
{
Jh.attr("showicon","false");
tM.addClass('graytext');
Cj&&(Cj.style.display="block");
}
else
{
Jh.attr("showicon","true");
tM.rmClass('graytext');
Cj&&(Cj.style.display="none");
}


},

setName:function(_aoEvent,ah,ao)
{


ad.destroy('PLP.Setting',{type:'name'});
},

returnsettin:function()
{
ad.ZX("");
},

setIcon:function()
{


ad.destroy('PLP.Setting',{type:'icon'});

ad.$.$("#bottle_paperlist").attr('isshow','false');
}
};
},













init_:function(ap)
{
window.gtemptime=(+new Date());

ap=ap||{};
var ad=this,
aP=ap.type||'setting';

if(!ap.oDom)
{
ap.oDom=
al.$(aP=='min'?'#setting_min':'#bottle_setting');
}
ad.dS=-1;
ad.aiA=0;
ad.aj=ap;
ad.superEx_(av,"init_",[ap]).show(aP);
}
}
);
}
);


}


);


$.package(


"bottle/ctrl/winecooler.js",


[
],


function(ay)
{

var $=ay,
al=QMWin;
















al.createCtrl(

"PLP.WineCooler",

{sSuper:'PLP.Frame'},
function(av)
{
var baj=al.lib('PLP.Template'),
au=al.lib('PLP.Data'),
dw='PLP.Tip',
bN="PLP.DCGeneral";

return(
{
zv:function()
{
var ad=this,
_oDom=ad.aj.oDom,
aOb=au.get(bN,
{
type:'magicgroup'
}
),
aKT=au.get(bN,
{
type:'bottleinfo',
value:0
}
),
aC=au.get(bN,
{
type:"attr"
}),
ke=(aC&&aC["point"])||0;
bHb=function(_aoEvent,ah,ao)
{
al.$(this).addClass("hover");
},

bGx=function(_aoEvent,ah,ao)
{
al.$(this).addClass("active");
},

bQZ=function(_aoEvent,ah,ao)
{
al.$(this).rmClass("hover");
al.$(this).rmClass("active");
};

var cH=false;
if(parseInt(ke,10)>=30)
{
cH=true;

}

























_oDom.html(
baj.get('magicTable').replace(
{
totle:aOb.totle+aKT.count,
items:[aKT].concat(aOb.items)
}
)
);






_oDom.find("a.select_box").addEvent("mouseover",bHb)
.addEvent("mousedown",bGx)
.addEvent("mouseout",bQZ);


if(_oDom.attr('fold')==='true')
{
_oDom.find("a.select_box").show();
_oDom.find("a.select_box[ck=fold]").hide();
}

return ad;
},

ajP:function(pe)
{
var ad=this,
_oDom=ad.aj.oDom,
be=_oDom.find('div.type_container'),
jw=be.find('a.select_box').size();

ad.amK();

ad.Lm=0;
ad.Oz(ad,pe);
ad.bBq=setInterval(function(){
ad.Oz(ad,pe);
},500);
},

amK:function()
{
var ad=this;

clearInterval(ad.bBq);
},

Oz:function(ad,pe)
{
var _oDom=ad.aj.oDom,
be=_oDom.find('div.type_container'),
JI=parseInt(be.css('marginLeft'),10),
jw=be.find('a.select_box').size();

if((JI<=(jw-6)*-69&&pe>0)||(JI>=0&&pe<0))
{
if(pe>0)
{
_oDom.find("a.next_typepage").addClass('next_typepage_disable');
}
else
{
_oDom.find("a.prev_typepage").addClass('prev_typepage_disable');
}
return false;
}

_oDom.find("a.next_typepage").rmClass('next_typepage_disable');
_oDom.find("a.prev_typepage").rmClass('prev_typepage_disable');

if(ad.animating===true)
{



return false;
}
else
{
ad.Lm++;
ad.animating=true;

al.animate(null,{
vDuration:'fast',
sEasing:'Linear',
onstep:function(eC,BN)
{
if(ad.Lm===0)
{
ad.Lm=1;
}
be.css('marginLeft',(JI-(ad.Lm*69)*eC*pe)+'px');
},
oncomplete:function()
{
if(ad.Lm===0)
{
ad.Lm=1;
}

JI=JI-ad.Lm*69*pe;
be.css('marginLeft',JI+'px');
ad.Lm=0;
ad.animating=false;

if((JI<=(jw-6)*-69&&pe>0)||(JI>=0&&pe<0))
{
if(pe>0)
{
_oDom.find("a.next_typepage").addClass('next_typepage_disable');
}
else
{
_oDom.find("a.prev_typepage").addClass('prev_typepage_disable');
}
return false;
}
}
});
}
},






show:function()
{
var ad=this,
wS=ad.zv().superEx_(av,"show");
return wS;
},

destroy:function(cA,at)
{
var ad=this;
au.addEvent(bN,'change',ad.iz,true);
return ad.superEx_(av,"destroy",[cA,at]);
},

rule:function()
{
return{
mouseover:
{
over:{}
},
mouseout:
{
out:{}
},
mousedown:
{
prev:{},
next:{}
},
mouseup:
{
stopprev:{},
stopnext:{}
},
keydown:
{
animate:{bPropagable:false}
},
keyup:
{
stopanimate:{bPropagable:false}
},
click:
{
draw:{},
clk:{sProcess:'click'},
fold:{},
cls:{}
}
};
},

events:function()
{
var ad=this;
return{
over:function(_aoEvent,ah,ao)
{








},
out:function(_aoEvent,ah,ao)
{





},
prev:function(_aoEvent,ah,ao)
{
ad.ajP(-1);
},
next:function(_aoEvent,ah,ao)
{
ad.ajP(1);
},
stopprev:function(_aoEvent,ah,ao)
{
ad.amK();
},
stopnext:function(_aoEvent,ah,ao)
{
ad.amK();
},
animate:function(_aoEvent,ah,ao)
{

if(_aoEvent.keyCode==37||_aoEvent.keyCode==38)
{
ad.ajP(-1);
}

if(_aoEvent.keyCode==39||_aoEvent.keyCode==40)
{
ad.ajP(1);
}
},
stopanimate:function(_aoEvent,ah,ao)
{
ad.amK();
},
draw:function(_aoEvent,ah,ao)
{
var cX=al.$(ah).attr('magicid');

ad.createCtrl(dw).showPlain('\u6b63\u5728\u9886\u53d6<span class="wait"></span>',{
delay:-1
});

au.post(bN,
{
type:'drawbottle',
value:cX
},
{
onsuccess:function(cC,aT)
{
ad.createCtrl(dw,{},{
click:function()
{
this.destroy();
}
})[aT.magicid>0?'showInfo':'showErr'](aT.magicid>0?'\u606d\u559c\u60a8\uff0c\u6210\u529f\u9886\u53d6\u5230\u4e00\u4e2a\u5174\u8da3\u74f6\uff0c\u5feb\u6765\u627e\u627e\u5174\u8da3\u76f8\u8fd1\u7684\u6709\u7f18\u4eba\u5427\u3002':'\u60a8\u5df2\u7ecf\u9886\u53d6\u8fc7\u5566\u3002\u635e\u74f6\u5b50\u4e5f\u6709\u53ef\u80fd\u635e\u5230\u5174\u8da3\u74f6\u54e6\u3002');
},
onerror:function(cC,aT)
{
ad.createCtrl(dw,{},{
click:function()
{
this.destroy();
}
}).showOldErr('\u9886\u53d6\u7684\u4eba\u592a\u591a\u4e86\uff0c\u585e\u8f66\u4e2d\u3002\u8bf7\u7a0d\u540e\u518d\u8bd5\u3002');
}
}
);

},

fold:function(_aoEvent,ah,ao)
{
var	_oDom=ad.aj.oDom;

_oDom.attr('fold','true').find("a.select_box").show();
ah.style.display='none';


},

click:function(_aoEvent,ah,ao)
{
var cX=al.$(ah).attr('magicid');

if(cX!=13&&cX!=14&&cX!=15)
{
al.ossLog("delay","all","stat=plp&1=10000&2="+cX);
}

ad.hide().createCtrl(
al.lib('PLP.Compose').getCtrlName(cX),
{
magicid:cX
},
{
close:function(cA,at)
{
if(cA)
{
ad.destroy(cA,at);
}
else
{
ad.show();

}
},
onsending:function()
{
ad.hide();
}
}
);
},

cls:function(_aoEvent,ah,ao)
{
var	_oDom=ad.aj.oDom;

_oDom.attr('fold','false');
ad.destroy();
}
};
},








init_:function(ap)
{
var ad=this;
if(!ap||!ap.oDom)
{
ap=ap||{};
ap.oDom=al.$('#bottle_magic');
}
ad.aj=ap;
ad.superEx_(av,"init_",[ap]);

ad.iz=function(ar,az)
{
if(/(magicgroup|magicBottle|normalBottle)/.test(ar)&&ad.isShow())
{

ad.zv(false);






}
};

au.addEvent(bN,'change',ad.iz);
ad.show(true);


}
}
);


}
);


}


);


$.package(


"bottle/ctrl/toolbar.js",


[


],


function(ay)
{

var $=ay,
al=QMWin;


















al.createCtrl(

"PLP.Toolbar",


{sSuper:'PLP.Frame'},
function(av)
{
var aJ=al.lib('PLP.Template'),
au=al.lib('PLP.Data'),
aD=al.lib('PLP.Util'),
bN='PLP.DCGeneral',
ix='PLP.DCList',
ayS='PLP.DCMail',
dw="PLP.Tip",
aCx=['first','unread','normalBottle','picking','name','magicBottle','friendUnread'];

var aFp=false,
bUI=false;

return(
{
show:function(bX,yL)
{

var ad=this,
_oDom=ad.aj.oDom,
ax={
tipRule:ad.showRule()
};


if(typeof bX==='undefined')
{
bX=aCx;
}

al.each(bX,function(ar)
{

ax[ar]=au.get(bN,
{type:ar}
);

if(ar=="unread"&&typeof yL=="number")
{
ax[ar]=yL;
}
}
);






ax.bottle=ax.normalBottle;





aC=au.get(bN,
{
type:"attr"
}),
ke=(aC&&aC["point"])||0;
gL=parseInt(ke,10);

ax['point']=gL;
_oDom.html(
aJ.get('toolbar').replace(ax)
);

ad.Mc(gL);


if(ad.showRule()>-1)
{
aFp=true;
}
















return ad.superEx_(av,"show");
},

destroy:function()
{
var ad=this;

au.addEvent(bN,'change',ad.iz,true);

return ad.superEx_(av,"destroy");
},

rule:function()
{
return{
click:
{
clk:{sProcess:'click'},
geo:{sProcess:'position'},
tar:{sProcess:"target"},
cls:{},
exit:{},
showinfo:{bPropagable:false},
chgcountry:{sProcess:'changecountry',bPropagable:false},
chgprovince:{sProcess:'changeprovince',bPropagable:false},
chgcity:{sProcess:'changecity',bPropagable:false}
}
};
},




events:function()
{
var ad=this;
return{
click:function(_aoEvent,ah,ao)
{
var wZ=al.$(ah).attr('act'),
rU=au.get('PLP.DCGeneral',
{
type:'bottleinfo',
value:0
})||{},
cku=rU.count||0;
if(wZ==='TableList')
{

window.gtemptime=(+new Date());
}

if(wZ==="WineCooler"&&cku===0)
{
aD.hideAll();
var	ZS=parseInt((Math.random()*10),10)%2+9;
au.get(bN,
{
type:"history"
},
function(as)
{
if(as)
{
al.extend(as,{send:true});
aD.showHistory(ad,as);
}
else
{
var cb=ad.createCtrl("PLP.Tip",{},
{
click:function(_aoEvent,ah,ao)
{
this.destroy();
}
}
).showErr(aJ.get('nobottle').replace({'plpfrom':aD.plpfrom(),'number':ZS}),{
'delay':-1,
beforeHide:function()
{
cb.destroy();
ad.$.$("#bottle_paperlist").attr('isshow','true').css('display','block').rmClass('opacity1');
window.paperlist.show();
}
});
}
});
}
else
{

aD.hideAll();


ad.fireEvent_('action',['PLP.'+wZ,{
close:function(cA,at)
{
ad.show();
},
from:'Toolbar'
}]);
}

if(wZ==='Setting')
{
ad.$.$("#bottle_paperlist").attr('isshow','false');
}
},

position:function(_aoEvent,ah,ao)
{
ad.beo(_aoEvent,ah,ao);
},
target:function(_aoEvent,ah,ao)
{
al.ossLog("delay","all","stat=plp&1=10027");
var ad=this,
aC=au.get("PLP.DCGeneral",{type:"attr"})||{},
gL=aC.point||0,
Iz=au.get("PLP.DCGeneral",{type:"picking"})||0;
aD.hideAll();
var cb=ad.createCtrl(dw,{},{
click:function(_aoEvent,ah,ao)
{
var aG=ad.$.$(_aoEvent.originalTarget||_aoEvent.srcElement),
wZ=aG.attr("ck");
if(wZ)
{
cb.destroy();
if(wZ==="pick")
{
ad.cBv();
}
else if(wZ==="pos")
{
ad.beo();
}

else if(wZ==="normalpick")
{
ad.fireEvent_('action',['PLP.Pick',{from:'Toolbar'}]);
}
}
}
});

if(Iz>0)
{
cb.showPlain(aJ.get("toolbarTarget").replace({point:gL}),
{
delay:-1,
className:"bottle_fetch_tips",
beforeHide:function()
{
cb.destroy();
}
});
}
else
{

aD.showHistoryOrChg(ad,{pick:true});
}
},

cls:function(_aoEvent,ah,ao)
{

ad.hideTip();
},

exit:function(_aoEvent,ah,ao)
{
ad.fireEvent_('exit');
},

showinfo:function(_aoEvent,ah,ao)
{
var
ak=ad.aj.oDom,
qT=ak.$(ah).attr('bind'),
uI=ak.find("div[next="+qT+"]"),
adN=uI.attr("name"),
bt=uI.html();
jc=ak.find("div#"+qT),
gh=uI.attr("_t");

jc.css('display','block');
gh&&clearInterval(gh);
ak.$(ah).addClass("state_selected");

if(qT==="city_qmpanel_shadow")
{
ad.selectDiv(jc.data(0),adN,"name");
}
else
{
var SQ=jc.data(0).childNodes,
_oItem;
al.each(SQ,function(kP,aPz)
{
if(kP.getAttribute("name")===bt)
{
_oItem=kP;
return false;
}
});
if(_oItem)
{
jc.data(0).scrollTop=(_oItem.offsetTop-30)||0;
ak.$(_oItem).addClass("menu_item_hover");
}
}
uI.focus();
},
changecountry:function(_aoEvent,ah,ao)
{

var
ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement),
aF=aG.attr('name'),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");

ak.find("div[bind='country_qmpanel_shadow']").rmClass("state_selected");
if(aF!=kt.html())
{
ak.find("div[next="+fX+"]").html(aF).attr('name',aF);

if(aF=='\u4e2d\u56fd')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow');
ak.find('div[next=province_qmpanel_shadow]').html('\u5317\u4eac').attr('name','\u5317\u4eac').parent('div.set_province').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name','1280000');

}
else if(aF=='\u5176\u4ed6\u5730\u533a')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ak.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}
}
aG.parent('div.qmpanel_shadow').css("display","none");
gh&&clearInterval(gh);
},
changeprovince:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement),
aF=aG.attr('name'),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");
ak.find("div[bind='province_qmpanel_shadow']").rmClass("state_selected");
if(aF!=kt.html())
{
ak.find("div[next="+fX+"]").html(aF).attr('name',aF);

var bo=ad.yK(aF),
cB='';
if(bo.length===1)
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item">'+bo[i].name+'</p>';
}
}
ak.find('div#city_qmpanel_shadow').html(cB);
aG.parent('div.qmpanel_shadow').css('display','none');
}
gh&&clearInterval(gh);

},
changecity:function(_aoEvent,ah,ao)
{
var ak=ad.aj.oDom,
aG=ak.$(_aoEvent.originalTarget||_aoEvent.srcElement),
aF=aG.html(),
fX=aG.parent('div.qmpanel_shadow').attr('id'),
kt=ak.find("div[next="+fX+"]"),
gh=kt.attr("_t");
ak.find("div[bind='city_qmpanel_shadow']").rmClass("state_selected");
kt.html(aF).attr('name',aG.attr('name'));
aG.parent('div.qmpanel_shadow').css('display','none');
gh&&clearInterval(gh);
},
textareaclick:function(_aoEvent,ah,ao)
{
ad.aj.oDom.find('textarea.sendText').focus();
}



};
},







selectDiv:function(nE,vd,abr)
{

var ad=this,
ak=ad.$.$(nE),
nN=ak.find("p["+abr+"="+vd+"]");
ak.data(0).scrollTop=(nN.data(0)&&nN.data(0).offsetTop-30)||0;
nN.addClass("menu_item_hover");
},




hideTip:function()
{
var ad=this,
_oDom=ad.aj.oDom;

_oDom.find(".bubble_tips").hide();
},





showRule:function(awc)
{
if(aFp)
{
return-1;
}



return 1;
},





showTmpRule:function(awc)
{
if(bUI)
{
return-1;
}



return 1;
},




clearTimer:function()
{
var ad=this;
clearInterval(ad.dmN);
},




cBv:function()
{
var ad=this,
aC=au.get("PLP.DCGeneral",{type:"attr"})||{},
gL=aC.point||0,
atp=al.getItem("plpcontactpick"),
ax={},
aeX=ad.createCtrl(dw,{},{
click:function(_aoEvent,ah,ao)
{
var fT=ad.$.$("span#bottle_tips"),
aG=fT.$(_aoEvent.originalTarget||_aoEvent.srcElement),
oX=aG.attr("ck"),gV,aDI;
if(oX==="setsex")
{
aDI=fT.find("a[ck='gopick']");
aDI.addClass("btn_disable");
gV=aG.attr("sex");

if(gV==="lady"&&gL<1)
{
fT.find("span[un='banladytip']").show();
return;
}
fT.find("input[un]").each(function(_aoDom,i)
{
var ew=fT.$(_aoDom);
if(ew.attr("sex")===gV)
{
ew.attr("checked",true).attr("selected","true");
ew.parent("div").addClass("current");
}
else
{
ew.rmAttr("checked").rmAttr("selected");
ew.parent("div").rmClass("current");
}
});
fT.find("ul[un]").each(function(_aoDom,i)
{
var rI=fT.$(_aoDom);

if(_aoDom.getAttribute("un")===gV)
{
rI.addClass("current");
if(rI.find("li.checked").size()>0)
{
aDI.rmClass("btn_disable");
}
else
{
rI.find("li.leftSide.").addClass("checked");
aDI.rmClass("btn_disable");
}
}
else
{
rI.rmClass("current");
}
i});
}
else if(oX==="setage")
{

aG.parents("ul").find("li.checked").rmClass("checked");
if(aG.attr("nodeName").toLowerCase()==="li")
{
aG.addClass("checked");
}
else
{
aG.parents("li").addClass("checked");
}
fT.find("a[ck='gopick']").rmClass("btn_disable");
}
else if(oX==="gopick")
{

var gV=fT.find("input[selected='true']").attr("sex"),
dO={},
iD,aDX,dPO;
if(gV)
{
iD=fT.find("ul[un='"+gV+"']").find("li.checked").attr("age");
if(iD)
{
if(iD==="1"||iD==="4")
{
aDX=0;
}
else if(iD==="2"||iD==="5")
{
aDX=1;
}
else
{
aDX=2;
}
dO["esex"]=encodeURIComponent(gV==="man"?"\u7537":"\u5973");
dO["eage"]=iD;
dO["contacttype"]=iD;
dO["action"]="contact";
QMWin.setItem("plpcontactpick",[gV,aDX].join(","));
aeX.destroy();
ad.fireEvent_('action',['PLP.Pick',{attr:dO,from:'Toolbar'}]);
}

else
{
var rI=fT.find("ul.current"),
ec=0,
gh;
gh=setInterval(function()
{
rI[ec%2===0?"addClass":"rmClass"]("opacity5");
if(++ec>5)
{
clearInterval(gh);
}
},200);
}
}
}
else if(oX==="cls")
{
aeX.destroy();
ad.$.$("a[ck='tar']").fireEvent("click");
}
}
});

if(atp&&atp.split(",").length===2)
{
var _oInfo=atp.split(",");
ax.sex=_oInfo[0];
ax.agetype=_oInfo[1];
ax.ok=true;
}
else
{

ax.sex=aC.sex==="\u5973"?"man":"lady";
ax.ok=false;
}


if(gL<1)
{
ax.sex="man"
ax.agetype=-1;
ax.ok=false;

ax.banlady=true;
}
aeX.showPlain(aJ.get("sexPick").replace(ax),
{
delay:-1,
className:"bottle_fetch_tips",
beforeHide:function()
{
aeX.destroy();
}
});

},




beo:function()
{
var ad=this,
aIm=ad.createCtrl('PLP.Tip',{},{
click:function(_aoEvent,ah,ao)
{
var fT=ad.$.$("span#bottle_tips"),
aG=fT.$(_aoEvent.originalTarget||_aoEvent.srcElement),
aF=aG.attr('name');

if(aF==='yes')
{
var aC={
from:'Toolbar',
action:'loc',
magicid:'16'
};
var eq=ad.$.$('span#bottle_tips div[next=city_qmpanel_shadow]').attr('name'),
Ga=ad.$.$('div[next=city_qmpanel_shadow]').data(0).innerHTML,
axL=ad.$.$('div[next=province_qmpanel_shadow]').data(0).innerHTML;

aC['region']=eq;

var fr=ad.$.$('span#bottle_tips input[un=searchtip]');
aC['address']='';

if(fr.css('display')!='none')
{
var yO=fr.attr('value'),
aoH=fr.hasClass('graytext');

aC['searchaddress']=aoH?"":encodeURIComponent(fr.attr('value'));

(Ga=='\u4e0d\u9650')?OB=axL:OB=Ga;
if(aoH||yO=='')
{
aC['address']=OB+','+'';
}
else
{
aC['address']=OB+','+yO;
}
}

var alQ=au.get("PLP.DCGeneral",
{
type:'attr'
});
if(alQ&&alQ.city)
{
aC['same']=(alQ.city==eq)?1:0;
aC['selfcity']=alQ.city;
}








this.destroy();
ad.fireEvent_('action',['PLP.Pick',{
attr:aC,
from:'Toolbar',
close:function(cA,at)
{
debug(1);
}
}]);
}
else if(aF==='no')
{
this.destroy();
}
else if(aF==="cls")
{
ad.$.$("a[ck='tar']").fireEvent("click");
}
}
});


aIm.showPlain(aJ.get('posTip'),{
delay:-1,
className:"bottle_fetch_tips",
beforeHide:function(bEa)
{
bEa.destroy();
}
});
},



Ty:function()
{

var ad=this,
wS=this.oSuper,

az={
'type':'searchpos',
'param':{
'region':wS.find('div[next=city_qmpanel_shadow]').html(),
'keyword':ad.oTxtContent.attr('value')
}
},
cg=ad.oTxtContent.attr('value');

au.get('PLP.DCGeneral',
az,
function(as){
if(cg!=ad.sLastValue)
{
return false;
}

var uL=[];
uL[uL.length]=as.address;

CG=aJ.get('pos').replace(
{
items:uL
});

sQ=uL.length;

if(sQ>0)
{
ad.oGuessContainer.html(CG).css('display','block');
}
else
{
ad.oGuessContainer.css('display','none');
}
}
);
},



yK:function(aF)
{
var ad=this,
ak=ad.aj.oDom,
_oInfo=aD.getprovinceinfo(),
AB=ak.find('div[next=country_qmpanel_shadow]').attr('name');
if(_oInfo[AB])
{
return _oInfo[AB][aF];
}
else
{
return[];
}
},
zN:function(eq)
{
var ad=this,
ak=ad.aj.oDom,
hC=aD.hashcity(eq);

ak.find("div[next=country_qmpanel_shadow]").html(hC.country).attr('name',hC.country);

if(hC.country=='\u4e2d\u56fd')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow');
ak.find('div[next=province_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_province').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').html('\u8bf7\u9009\u62e9').attr('name','\u8bf7\u9009\u62e9').parent('div.set_city').css('display','block');
}
if(hC.country=='\u5176\u4ed6\u5730\u533a')
{
ak.find('div[province=true]').attr('next','province_qmpanel_shadow_other');
ak.find('div[next=province_qmpanel_shadow_other]').html('\u5176\u4ed6\u5730\u533a').attr('name','\u5176\u4ed6\u5730\u533a').parent('div.set_province').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').html('\u5176\u4ed6\u5730\u533a').attr('name','32768').parent('div.set_city').css('display','none');
}

ak.find("div[next=province_qmpanel_shadow]").html(hC.province).attr('name',hC.province);

var bo=ad.yK(hC.province),
cB='';

if(bo.length===1)
{
ak.find('div[bind=city_qmpanel_shadow]').css('display','none');
ak.find('div[next=city_qmpanel_shadow]').attr('name',bo[0].id).html(bo[0].name);
}
else
{
ak.find('div.set_city').css('display','block');
ak.find('div[next=city_qmpanel_shadow]').attr('name','\u8bf7\u9009\u62e9').html('\u8bf7\u9009\u62e9');
for(var i=0,l=bo.length;i<l;i++)
{
cB+='<p title="'+bo[i].name+'" name="'+bo[i].id+'" mot="qmpanelout" mor="qmpanelover" class="menu_item">'+bo[i].name+'</p>';
}
}
ak.find('div#city_qmpanel_shadow').html(cB);
ak.find("div[next=city_qmpanel_shadow]").html(hC.city).attr('name',eq);
},


Mc:function(uY)
{
var ad=this,
gL=parseInt(uY,10),

zR=ad.$.$("div#toolbar a.ico_position");
if(gL>=0)
{
zR.css('display','block');
}
else
{
zR.css('display','none');
}
},








init_:function(ap)
{

var ad=this;
if(!ap||!ap.oDom)
{
ap=ap||{};
ap.oDom=al.$('#toolbar');
}
ad.aj=ap;
ad.superEx_(av,"init_",[ap]);

ad.iz=function(ar,az)
{
if(('|'+aCx.join('|')+'|').indexOf(('|'+ar+'|'))>=0)
{



var bX={};
bX[ar]=az;
ad.show(aCx,bX);
}
};

au.addEvent(bN,'change',ad.iz);
au.addEvent(ayS,'change',ad.iz);


ad.show();












}
}
);


}
);


}


);


$.package(


"bottle/ctrl/list/favourlist.js",


[
],


function(ay)
{

var $=ay,
al=QMWin;








al.createCtrl(
"PLP.FavourList",
{sSuper:'PLP.Frame'},
function(av)
{
var afF=20,
aMb=7,
aJ=al.lib('PLP.Template'),
au=al.lib('PLP.Data'),
aD=al.lib('PLP.Util'),
dw='PLP.Tip',
ix='PLP.DCList',
bN="PLP.DCGeneral",
xO=['friend','drop','collect'],
OG="PLP.ModelList",
cr=al.lib(OG),
uD=aJ.get('favourList'),
Hs=['.receivebottle','.onlythrowbottle','.favourContentAll'];

return(
{

bOt:function(ag)
{
var ad=this;

var aC=au.get('PLP.DCGeneral',
{
type:'attr'
}),
czd=au.get("PLP.DCGeneral",{type:"tip"});


if(QMWin.uin()==1405947014||QMWin.uin()==1018859206)
{
aC.updatetime=0;
}
if(typeof aC.sysmsgunreadcount==='undefined')
{
aC.sysmsgunreadcount=0;
}

if(typeof aC.newcollectedcount==='undefined')
{
aC.newcollectedcount=0;
}
ag.opengarden=(aC.updatetime!=0);

ag.sysmsgunreadcount=aC.sysmsgunreadcount;
ag.collectedtotle=aC.newcollectedcount;

ag.icon40=au.get('PLP.DCGeneral',
{
type:"icon",
value:40
}
);

var nw=au.get('PLP.DCGeneral',
{
type:'attr'
}
);

var rG='';
if(ad.$.htmlDecode(nw.name).length&&ad.$.htmlDecode(nw.name).length>6)
{
rG='...';
}

ag.selfname=/^[a-z\s]+$/gi.test(ad.$.htmlDecode(nw.name))?nw.name:(ad.$.htmlEncode(ad.$.htmlDecode(nw.name).substr(0,6))+rG);
ag.point=nw.point;
ag.level=nw.level;

if(ag.selfname=='')
{


}

ag.lonely=(aC&&aC.lonely)||false;

ag.showtip=false;
if(czd['76']===true&&parseInt(nw.updatetime,10)<1)
{
ag.showtip=true;
}

return ag;
},

cCK:function()
{
var ad=this,
_oList=cr.getData(
{
type:"collect",
pagesize:512,
page:0
},
{
oncomplete:function(cC,aT)
{
ad.byx(aT);
}
}
);
if(_oList)
{
ad.byx(_oList);
}
},
byx:function(eI)
{
var ad=this,
ak=ad.aj.oDom,
bsq={},
aOM=[],
pS=[],
aNw=false,
_nLen=0;
al.each(eI.items,function(aI,kP)
{
bsq[aI.otheruin]=aI.magicid;
pS.push(aI.otheruin)
});
cr.getData(
{
type:"realuininfo",
uinList:pS
},
function(as)
{
al.each(pS,function(aI,kP)
{
aI=as[aI];
if(aI)
{
if(aI.steptime!=ay&&aI.updatetime!=ay)
{
aNw=(parseInt(aI.updatetime,10)-parseInt(aI.steptime,10)>0)
if(aNw&&bsq[aI.otheruin]!=11)
{
aOM.push(aI.otheruin)
}
}
}
});
au.post(bN,
{
type:"gardenupdfriends",
value:aOM
});
_nLen=aOM.length;

if(_nLen>0)
{
var XF=ak.find("span[un='gardenupdnum']");
XF.attr("title",["\u60a8\u6709",_nLen,"\u4f4d\u74f6\u53cb\u66f4\u65b0\u4e86\u79d8\u5bc6\u82b1\u56ed"].join("")).show();
XF.find("span[un='num']").html(_nLen);
}
else
{
ak.find('div.new_feature_tips').show();
}

cr.getData(
{
type:"sortfavour"
});
});


},



show:function()
{

var ad=this,
_oDom=ad.aj.oDom,
gB=ad.dS,
MU=aJ.get('allFavourList'),
nw=au.get('PLP.DCGeneral',
{
type:'attr'
}
)||{};

if(nw.name=='')
{

}

var rG='';
if(ad.$.htmlEncode(nw.name).length&&ad.$.htmlEncode(nw.name).length>8)
{
rG='...';
}



_oDom.html(MU.replace({
icon40:au.get('PLP.DCGeneral',
{
type:"icon",
value:40
}
),
collect:nw.collect,
selfname:/^[a-z]+$/gi.test(nw.name)?nw.name:(ad.$.htmlEncode(ad.$.htmlDecode(nw.name).substr(0,8))+rG),
point:nw.point,
level:nw.level,
tab:gB
}));
_oDom.find(Hs[gB]).html(aJ.get('favourList').replace(ad.bOt({})));


ad.cCK();
return ad.superEx_(av,"show");
},

destroy:function(cA,at)
{
var ad=this;
au.addEvent(ix,'change',ad.iz,true);
au.addEvent(ix,'update',ad.vB,true);
return ad.superEx_(av,"destroy",[cA,at]);
},

rule:function()
{
return{
click:
{
showsetting:{},
changesence:{},
refresh:{sProcess:'refreshlist',bPropagable:false},
refreshicon:{sProcess:'refreshicon',bPropagable:false},
cls:{},
opengarden:{sProcess:'openGarden',bPropagable:false},
gogarden:{sProcess:'goGarden',bPropagable:false}
}
};
},

events:function()
{
var ad=this,
$=ad.$,
_oDom=ad.aj.oDom,
vN='dialogueOn';
return{

refreshlist:function(_aoEvent,ah,ao)
{

},

refreshicon:function(_aoEvent,ah,ao)
{

},

showsetting:function(_aoEvent,ah,ao)
{
aD.hideAll();
ad.fireEvent_('action',['PLP.Setting',{from:'FavourList',type:"iconopen"}]);
},
changesence:function(_aoEvent,ah,ao)
{
aD.hideAll();
ad.fireEvent_('action',['PLP.Setting',{from:'FavourList',type:'changesence'}]);
},

goGarden:function(_aoEvent,ah,ao)
{
aD.hideAll();
ad.aj.oDom.find('div.new_feature_tips').hide();
ad.fireEvent_('action',['PLP.Garden',{from:'FavourList',type:'iconopen'}]);
},
openGarden:function(_aoEvent,ah,ao)
{
aD.hideAll();
ad.aj.oDom.find('div.new_feature_tips').hide();
ad.fireEvent_('action',['PLP.Garden',{from:'FavourList',type:'opengarden'}]);
},
cls:function(_aoEvent,ah,ao)
{
ad.destroy();
}
};
},








init_:function(ap)
{
var ad=this;
if(!ap||!ap.oDom)
{
ap=ap||{};
ap.oDom=al.$('#bottle_favour');
}
ad.aj=ap;
ad.superEx_(av,"init_",[ap]);

ad.lG=[0,0,0];
ad.aMh=[0,0];
ad.dS=2;

ad.SW=false;

ad.show();
}
}
);
}
);






}


);


$.package(


"bottle/ctrl/list/paperlist.js",


[
],


function(ay)
{

var $=ay,
al=QMWin;







al.createCtrl(
"PLP.PaperList",
{sSuper:'PLP.Frame'},
function(av)
{
var ix='PLP.DCList',
aJ=al.lib('PLP.Template'),
au=al.lib('PLP.Data'),
cr=al.lib("PLP.ModelList"),
aD=al.lib('PLP.Util'),
dw='PLP.Tip',

bD=null;

return(
{

hide_:function(cH)
{
var ad=this;
ad.hide();

if(ad.bD)
{
ad.bD.hide();
}

if(cH===true)
{
ad.aj.oDom.hide();
}

ad.zv(false);

return ad;
},

zv:function(fj)
{
var ad=this,
hN=function(cC,aT)
{





var bC=aT.items,
lz=(6-bC.length)>2?(6-bC.length):2,
dsz=[];



var ddT=[],_nLen;


if(ad.isActive()&&bC)

{
var _oDom=ad.aj.oDom,
bjc=aJ.get('paperList'),
TS=ad.$.$("#bottle_paperlist").attr('isshow'),
ih=TS==="true"?true:false,
pS=[],
aae=[];

_oDom.html(bjc.replace({
count:bC.length,
isshow:TS,
items:bC
}));
fj&&ih&&ad.superEx_(av,"show");





al.each(_oDom.find("li[un='paper']"),function(_aoDom,i)
{
aae.push(
{
otheruin:_aoDom.getAttribute("otheruin"),
mailid:_aoDom.getAttribute("mailid")
});
pS.push(_aoDom.getAttribute("otheruin"));
});
cr.getData(
{
type:"realuininfo",
uinList:pS
},
function(as)
{
al.each(aae,function(dI,i)
{
var cd=dI.otheruin,
cm=as[cd],
xN=_oDom.find("li[mailid='"+dI.mailid+"']"),
ht=xN.find("img"),
bWC=xN.find("span.bold");
if(ht.attr("imgok")!=="true")
{
ht.attr("src",(cm&&cm.qqicon)?cm.qqicon:"/cgi-bin/getqqicon?uin=0");
}








});
});
}
else
{
ad.hide();
}
};












var _oList=cr.getData(
{
type:"allunread"
},
{
oncomplete:hN
}
);











if(_oList&&_oList.items)
{
hN(null,_oList);
}
else
{
ad.aj.oDom.hide();
}
return ad;
},










































show:function(cBD)
{
var ad=this;


debug('paperlist227');
if(ad.bD&&ad.bD.hide&&cBD!==false&&ad.chn())
{
ad.bD.hide();
}
return ad.zv(true);
},

chn:function()
{
var ad=this,
_oDom=ad.$.$('#bottle_mail');
if(_oDom.css('display')!=='none')
{
if(_oDom.find('a.btn').attr('mailid')==ad.bD.mailid)
{
return true;
}
}
_oDom=ad.$.$('#bottle_interactive');
if(_oDom.css('display')!=='none')
{
if(_oDom.find('a.icon').attr('mailid')==ad.bD.mailid)
{
return true;
}
}
return false;
},

destroy:function(cA,at)
{
var ad=this;
au.addEvent(ix,'change',ad.iz,true);
au.addEvent(ix,'update',ad.vB,true);
return ad.superEx_(av,"destroy",[cA,at]);
},

read_:function(aH,ah,bIF)
{
var ad=this,
_oList=cr.getData(
{
type:"allunread"
},
{

}
);


var bE={};
al.each(_oList.items,function(aI,aN)
{
if(aI.mailid==aH)
{
bE=aI;
return false;
}
}
);

var jQ='';
if(bE)
{
jQ=bE&&(bE.digest||bE.listtype=='sysmsg'||bE.listtype=='bottle_drop'||bE.magicid==9)?'PLP.InteractiveMail':'PLP.Mail';
}
else
{
jQ="PLP.InteractiveMail";
}



if(bE&&bE.magicid==11&&bE.digest)
{
jQ="PLP.InteractiveMail";
}
else if(bE&&bE.magicid==11)
{
jQ="PLP.Compose.Love";
}

aD.hideAll();
ad.hide_().createCtrl(jQ,
{
loc:"paper",
magicid:ah.getAttribute('magicid'),
mailid:ad.awD(aH,true),
curstatus:ah.getAttribute('curstatus'),
oldstatus:ah.getAttribute('oldstatus'),

mailinfo:bE,
bFocusTextArea:bIF
},
{
close:function(cA,at)
{

ad.aj.oDom.attr('showmail','false');
ad.show();
}
}
);

ad.dE=setInterval(function(){
if(window.gLastCtrl&&window.gLastCtrl.ctrlname==jQ)
{
clearInterval(ad.dE);
ad.bD=window.gLastCtrl;
ad.bD.mailid=ad.awD(aH,true);
}
},300);

ad.aj.oDom.attr('showmail','true');




ad.KI(ad.aj.oDom.find('li[mailid="'+aH+'"]'));

return ad;
},


KI:function(oZ)
{
var ad=this;
var jw=oZ.size();
if(jw==1)
{
var	sF=parseInt(oZ.css('opacity'),10);
al.animate(null,{
vDuration:'normal',
sEasing:'Linear',
onstep:function(eC,BN)
{
oZ.css("opacity",sF*(1-eC));
},
oncomplete:function()
{
debug("remove");
oZ.remove();
ad.zv(true);
}
});
}
else if(jw>1)
{
oZ.remove();
}

},

unread_:function(aH,oZ)
{
var ad=this,
aU=ad.awD(aH,true),
bE={};
















au.get('PLP.DCMail',
{
type:'read',
loc:ad.aj.loc,
mailid:aU
});

ad.$.$("div.favourWrap a[mailid='"+aU+"']").find("span.unread").remove();

ad.KI(ad.aj.oDom.find('li[mailid="'+aH+'"]'));

return ad;
},

rule:function()
{
return{
click:{
cls:{sProcess:'unread',bPropagable:false},
read:{bPropagable:false},

readandrly:{sProcess:'readAndRly',bPropagable:false},
thr:{sProcess:'throw',bPropagable:false},
reSendLove:{bPropagable:false}
}
};
},

events:function()
{
var ad=this,
$=ad.$,
_oDom=ad.aj.oDom,
vN='dialogueOn';

function abW(_aoDom)
{
var aU=_aoDom.getAttribute("mailid");
if(!aU)
{
var fG=ad.$.$(_aoDom).parents("li[ck='rdbtl']");
aU=fG.attr("mailid");
}
return aU;
};

return{
unread:function(_aoEvent,ah,ao)
{
var fG=ad.$.$(ah).parents("li[ck='rdbtl']");
ad.unread_(abW(ah),fG);
},
read:function(_aoEvent,ah,ao)
{
var fG=ad.$.$(ah).parents("li[ck='rdbtl']"),
vx=fG.data(0);

if(ad.aj.oDom.find('li[mailid]').data(0).getAttribute('mailid')==abW(ah))
{
ad.$.$('#weaktip').css('display','none');
}

ad.read_(abW(ah),vx,false);
},
readAndRly:function(_aoEvent,ah,ao)
{
var fG=ad.$.$(ah).parents("li[ck='rdbtl']"),
vx=fG.data(0);

ad.read_(abW(ah),vx,true);
},
reSendLove:function(_aoEvent,ah,ao)
{
var fG=ad.$.$(ah).parents("li[ck='rdbtl']");
ad.unread_(abW(ah),fG);
ad.bQe(ah);
}
};
},




init_:function(ap)
{
var ad=this;
if(!ap||!ap.oDom)
{
ap=ap||{};
ap.oDom=al.$('#bottle_paperlist');
}
ad.aj=ap;
ad.superEx_(av,"init_",[ap]);

ad.iz=function(ar,az)
{

if(ad.isShow()&&(ar=="remove"||ar=="unread"||ar=='dirty'))
{


ad.zv(true);
}
};

ad.vB=function(ar,az)
{


if(ad.isShow()&&(ar=='friend'||ar=='content'||ar=="sysmsg"))
{
ad.zv(true);
}
};

au.addEvent(ix,'change',ad.iz);
au.addEvent(ix,'update',ad.vB);

if(window.gIsSmall===true)
{
ad.aj.oDom.addClass('s1024');
}

ad.show();
},

awD:function(aH,cNb)
{
var aU=aH||"";
if(aH.indexOf("sysmsg_")==0)
{
aU=(aH||"").replace(/sysmsg_\d*_/,"");
}

return aU;
},

bQe:function(ah)
{
var ad=this,
cd=ah.getAttribute("uin");
ad.hide().createCtrl(
al.lib("PLP.Compose").getCtrlName(11),
{magicid:11,uin:cd},
{
close:function(cA,at)
{
if(cA)
{
ad.destroy(cA,at);
}
else
{
ad.show();
}
},
onsending:function()
{
ad.hide();
}
}
);

}
}
);
}
);


}


);


$.package(


"bottle/ctrl/stage.js",


[

],


function(ay)
{

var $=ay,
al=QMWin,

bBy='PLP.PaperList',

bIq='PLP.Setting',
aU='PLP.Mail',
bN="PLP.DCGeneral",
au=al.lib('PLP.Data'),
aD=al.lib('PLP.Util');





al.createLib(
"PLP.Stage",
{
bStatic:true
},
function(av)
{
var aJ=al.lib('PLP.Template'),
aRk='EMPLY',

aew=null,
auS=null,
Ip=null;


var	ary=null,
CS=null,
To=null;

return(
{
qR:function(Ae,at)
{





var ad=this,
oF=Ae||bBy;


if(aew=Ip)
{

if(at.bIsWebpush!==true||ad.$.$('#bottle_fetch').css('display')!=='none')
{
Ip.destroy();
}
}
if(Ae&&Ae!=aRk)
{

if(!at)
{
at={};
}

at.paperlist=CS;

aD.checkCtrl({
ctrlname:oF,
param:at
},function(asc){
debug('87'+asc.ctrlname);
var aRM={};

aRM.close=function(Ae,at)
{
aD.checkCtrl({
ctrlname:Ae,
param:at
},function(aw){
debug('96'+aw.ctrlname);

Ip=null;
if(aew!=this)
{
if(aw.param&&aw.param.close&&al.isFunc(aw.param.close))
{
aw.param.close(aw.ctrlname,aw.param);
}
ad.qR(aw.ctrlname,aw.param);
}
});
}
if(typeof asc.param.click!=='undefined')
{
aRM.click=asc.param.click;
}

auS=al.ctrl(asc.ctrlname,asc.param,aRM);
if(auS.isActive())
{
Ip=auS;
}
});




if(oF==='PLP.Pick')
{
CS.hide_(true);
aD.hideAll();
}
else
{

if(CS&&ad.$.$("#bottle_paperlist").attr('showmail')=='true'&&at.bIsWebpush!==true)
{
CS.destroy();
}


if(CS||oF==='PLP.PaperList')
{

if(at.bIsWebpush===true)
{
CS.show(false);
}
else
{
CS.show();
}
ad.$.$("#bottle_paperlist").css('display','block');
}


if(at.bIsWebpush!==true)
{
if(oF.indexOf('Compose')<0)
{
ad.$.$("#bottle_send").hide();
}

if(oF.indexOf('Wine')<0)
{
ad.$.$("#bottle_magic").hide();
}
}
}
}
return ad;
},

bcf:function()
{
this.$.inWin().location.href='/cgi-bin/today?loc=bottle,,,2&sid='+al.sid();
},

show:function()
{
var ad=this;

ad.bLG();

},

bLG:function()
{
var ad=this,
$=ad.$;
To=al.ctrl('PLP.Toolbar',{},{
action:function(kn,at)
{
aD.checkCtrl({
ctrlname:kn,
param:at
},function(aw){
debug(aw.ctrlname);


if(ad.$.$('#bottle_setting').css('display')==='block')
{
ad.$.$('#bottle_setting').css('display','none');
}
ad.qR(aw.ctrlname,aw.param);
});
},
exit:function()
{
ad.bcf();
}
});


window.paperlist=CS=al.ctrl('PLP.PaperList',{},{






close:function(Ae,at)
{
aD.checkCtrl({
ctrlname:Ae,
param:at
},function(aw){
debug('223'+aw.ctrlname);

Ip=null;
if(aew!=this&&aw.ctrlname)
{
debug('228');
ad.qR(aw.ctrlname,aw.param);
}
});
}
});


window.favourlist=EH=al.ctrl('PLP.FavourList',{},{






action:function(kn,at)
{
aD.checkCtrl({
ctrlname:kn,
param:at
},function(aw){

debug(aw.ctrlname);

if(ad.$.$('#bottle_setting').css('display')==='block')
{
ad.$.$('#bottle_setting').css('display','none');
}
ad.qR(aw.ctrlname,aw.param);
});
},
close:function(Ae,at)
{
Ip=null;
if(aew!=this)
{
ad.qR(Ae,at);
}
}
});



var ye=aD.request('func');

if(ye!==''&&typeof ad["func_"+ye]!=='undefined')
{
setTimeout(function(){
ad["func_"+ye]();
},500);
}
else
{
var dG=new Date(),
di=$.$('div#bottle_paperlist li[ck=rdbtl]'),
rU=al.lib('PLP.Data').get(bN,{type:"bottleinfo",value:0})||{},
ahJ=rU.count||0;
if(typeof window.gAttr.tipsid!=='undefined')
{
var bWg=al.ctrl('PLP.Tip',{},{
click:function(_aoEvent,ah,ao)
{
var aG=$.$(ah),
aF=aG.attr('name');
switch(aF)
{
case'setlocate':
ad.$.$('#weaktip').css('display','none');
ad.$.$('#bottle_tips').css('display','none');
ad.$.$('#btlmask').css('display','none');
ad.qR("PLP.Setting",{type:"name"});
break;
default:
break;
}
}
});
bWg.showOldInfo(aJ.get('setLocate').replace({}),{delay:-1});
}

if(di.size()===0)
{

if(window.gAttr.fritip!==true&&window.gAttr.opentip!==true)
{
if(ahJ>0)
{

dyG=al.ctrl('PLP.WineCooler',{},{
close:function(Ae,at)
{
Ip=null;
if(aew!=this)
{
ad.qR(Ae,at);
}
}
});
}
}
}



var dw='PLP.Tip',
awA=al.ctrl(dw,{},{
click:function(_aoEvent,ah,ao)
{
var aG=ad.$.$(_aoEvent.originalTarget||_aoEvent.srcElement),
wZ=aG.attr("ck");
if(wZ==="send")
{
this.destroy();
ad.qR("PLP.Compose.PreContact",{magicid:"8"});
}
}
});
if(window.gAttr.fritip===true)
{
awA.showMemo(aJ.get('fritip'),{className:"notice",'delay':-1});
}





}


ad.bBz();

return ad;
},

bBz:function()
{
var ad=this,
ae=window.getTop&&getTop(),
bFq=aD.plpfrom(),
en=function()
{
if(typeof ae.QMWebpushTip!=='undefined')
{
ae.QMWebpushTip.close(4,true,false);
}
var aVj=ae.QMWebpush.getInst();
aVj.open(12);
window.readtime=function(dlx,ag){
al.ossLog("delay","all","stat=plp&1=10022");
al.each(ag,function(Ql,aN)
{
if(Ql.cmd=='post'||Ql.cmd=='reply')
{
ad.bzf.call(ad,Ql);
}
if(Ql.cmd=='inputstart')
{
al.ossLog("delay","all","stat=plp&1=10013");
ad.bCE.call(ad,Ql);
}
});
}
aVj.addEvent(12,window.readtime);
window.onunload=function(){
ae.QMWebpush.getInst().delEvent(window.readtime);
if(typeof ae.QMWebpushTip!=='undefined')
{
ae.QMWebpushTip.open(4);
}
};
QMWin.addPageUnloadEvent(function(){
ae.QMWebpush.getInst().delEvent(window.readtime);
if(typeof ae.QMWebpushTip!=='undefined')
{
ae.QMWebpushTip.open(4);
}
});
};
if(bFq==="webmail")
{

if(ae&&typeof ae.QMWebpush!=='undefined'&&typeof ae.QMWebpushTip!=='undefined')
{
en();
}
else
{
aD.isdLog({
'speedid':1003,
'8':1000
});

window.nWebpushTime=0;
window.nWebpushIntervalId=setInterval(function()
{
window.nWebpushTime++;
if(ae&&typeof ae.QMWebpush!=='undefined'&&typeof ae.QMWebpushTip!=='undefined')
{
window.nWebpushIntervalId&&clearInterval(window.nWebpushIntervalId);
en();
}
if(window.nWebpushTime==10)
{
aD.isdLog({
'speedid':1003,
'9':1000
});
}
if(window.nWebpushTime==20)
{
aD.isdLog({
'speedid':1003,
'10':1000
});
}
if(window.nWebpushTime>=40)
{
aD.isdLog({
'speedid':1003,
'11':1000
});
clearInterval(window.nWebpushIntervalId);
}
},3000);
}
}
},

bzf:function(ag)
{
debug("domailrealtime:"+ag.cmd+":"+ag.mailid);

var aSP=parseInt(ag.time,10),
hj=parseInt(+new Date()/1000,10);

al.ossLog("delay","all","stat=plp&1=10026&2="+(aSP-hj));

var ad=this,
nj=ag.cmd,
wI=ad.$.$("div#bottle_interactive"),

cb=ad.qR('PLP.Tip',{
bIsWebpush:true,
click:function(_aoEvent,ah,ao)
{
var aG=$.$(ah),
aF=aG.attr('name');

switch(aF)
{
case'read':

ad.$.$('#bottle_tips').css('display','none');
ad.$.$('#btlmask').css('display','none');
var ape=window.oWebpushArray.length;

al.lib('PLP.Data').post("PLP.DCGeneral",
{
type:"weaktipread",
mailid:aG.attr('mailid'),
value:ape-1
});


var ata='';
if(ad.$.$('#bottle_mail').css('display')!=='none')
{
ata='#bottle_mail';
}
if(ad.$.$('#bottle_interactive').css('display')!=='none')
{
ata='#bottle_interactive';
}

aD.hideAll();
if((ata==="#bottle_interactive"&&nj==="reply")||(ata==="#bottle_mail"&&nj!=="reply"))
{
ad.$.$(ata).show();
}
ad.qR(nj==="reply"?"PLP.InteractiveMail":"PLP.Mail",{mailid:aG.attr('mailid')});
break;
default:
break;
}
}
}),
vI=ag.mailid,
cr=al.lib("PLP.ModelList"),
jm=""+au.get('PLP.DCGeneral',
{
type:'lastTimeStamp'
}),
cX=wI.find("a[ck='cls']").attr("magicid"),
aPL=function(aH)
{
if(wI.css("display")!="none")
{
var aU=wI.find("a[ck=cls]").attr("mailid");
return aU==aH;
}
else
{
return false;
}
},
bw=au.get("PLP.DCMail",{type:"cache",mailid:vI.replace(/sysmsg_\d*_/,"")});


cb=(Ip)?Ip:auS;

if(bw&&bw['content']&&bw['content'][0])
{

var bvm=parseInt(bw['content'][0].time,10);

if(bvm>=aSP)
{
al.ossLog("delay","all","stat=plp&1=10025&2="+(bvm-aSP));
return;
}
}
cr.postData({
'type':'realtime'
});
au.post("PLP.DCMail",
{
type:"update",
dirty:true,
mailid:vI

});

if(aPL(vI))
{

al.ossLog("delay","all","stat=plp&1=10014");
if(cX==="11")
{
wI.find("a[ck=refresh]").fireEvent('click');
}
else
{
au.get('PLP.DCMail',
{
type:'read',
mailid:vI
},
{
oncomplete:function(cC,ag)
{

if(!aPL(vI)||typeof ag.errmsg!="undefined")
{
window.oWebpushArray=aD.arrayPushWithCheck(window.oWebpushArray,vI);
cb.showOldInfo(aJ.get('mailchange').replace({mailid:vI,len:window.oWebpushArray.length}),{delay:-1});
anG.post(bN,
{
type:"mailrealtime",
mailid:vI
});
return;
}
var aiR=wI.find("div[un=mailcontent]"),
aB=ag.content,
aC=au.get("PLP.DCGeneral",
{
type:'attr'
}),
cm=cr.getData(
{
type:"uininfo",
uin:ag.otheruin
}),
eU=(aC&&aC.showicon)||false,
HJ=QMWin.encryptuin(),
QT=au.get("PLP.DCGeneral",
{
type:'icon',
value:40
}),
bOJ=parseInt(ag.servertime,10)/1000000;
al.each(aB,function(aI,aN)
{
var eW=aD.millTimeFormator(aI.time,bOJ);
aB[aN].stime=eW;
aB[aN].ctime=aD.dateBreaker(eW);
if(aI.conttype==16&&aI.orgcontent)
{

var mc=aI.orgcontent.replace(/&#39;/g,"'").split("#");
if(mc.length===3)
{
aI.say=aD.hashface(mc[1].replace(/%23/g,"#"));
aI.comment=aD.hashface(mc[2].replace(/%23/,"#"));
aI.messagepicker=(ag.ismyself&&aI.sender==="picker")||(!ag.ismyself&&aI.sender==="poster");
}
}
if(ag.magicid=='3')
{
if(typeof aB[aN+1]==='undefined')
{
aB[aN].content=aB[aN].dealcontent;
}
else
{
aB[aN].content=aB[aN].orgcontent;
}
}

if(aB[aN].uin==HJ)
{
aB[aN].qqicon=QT;
}

aB[aN].content=aD.hashface(aB[aN].content);
});



var aR=ag.content[ag.content.length-1].content;

if(aR.substr(0,1)==='#'&&aR.substr(1,1)==='#')
{
aR=aR.substr(2);
}
if(ag.magicid==8)
{
if(aR.indexOf('@')>-1)
{
aR=aR.split('@');
if(aR[2])
{
aR=aR[2];
}
else
{
aR=aR[0];
}

}
}
ag.content[ag.content.length-1].content=aR;
aiR.html(aJ.get("interactiveMail").replace(ag,"readmore"));
aiR.find("div[msgid]").data(0).className+=" dialogue_unread ";
wI.find("a[ck='updatecheckpage']").fireEvent("click");


if(cm.penfri==1)
{
wI.find('a[ck=addpenfri]').css('display','none');
wI.find('a[un=penfri]').css('display','inline-block');
}
}
});

}



}
else
{

var bE=cr.getData({
type:'listinfo',
mailid:vI
}),
ape=au.get(bN,{type:"unread"});
if(!bE||(bE&&bE.unread==false))
{
cr.postData({
type:"setunreadtoalllist",
mailid:vI
});
}
al.ossLog("delay","all","stat=plp&1=10015");

window.oWebpushArray=aD.arrayPushWithCheck(window.oWebpushArray,vI);
au.post(bN,
{
type:"unread",
value:window.oWebpushArray.length
});


if(ad.$.$('#bottle_fetch').css('display')=='none')
{
cb.showOldInfo(aJ.get(nj==="reply"?'mailchange':'newmail').replace({mailid:vI,len:window.oWebpushArray.length}),{delay:-1});
}


nj!=="reply"&&(window.oWebpushArray=[]);

}
},

bCE:function(ag)
{
var ad=this,
wI=ad.$.$("div#bottle_interactive"),
vI=ag.mailid,
nj=ag.cmd;
if(wI.css("display")!="none")
{
bAM=wI.find("a[ck='cls']").attr("mailid");
if(bAM==vI)
{
if(nj=="inputstart")
{
wI.find("span[un='inputstate']").css("display","");
setTimeout(function()
{
wI.find("span[un='inputstate']").css("display","none");
},10000);
}
}
}
},

func_setting:function()
{

var ad=this;
ad.$.$("a[ck='showsetting']").fireEvent('click');
},

func_read:function(aH)
{
return false;
var ad=this,
fG=ad.$.$("div#bottle_paperlist li[mailid='"+aH+"']");
fG.find("a[ck='readandrly']").fireEvent("click");
},

func_readlove:function()
{
return false;
},

afn:function()
{
var ad=this,
aO=ad.aj;







if(typeof aO.sysmaintence!=='undefined')
{
var dw='PLP.Tip',
cb=al.ctrl(dw,{},{}
);
cb.showMemo(aO.sysmaintencetxt,{'delay':-1});
return false;
}

if(ary)
{
ary.destroy();
ary=null;
}
if(To)
{
To.destroy();
To=null;
}

ad.qR(aRk);


al.ctrl(bIq,
{
type:'open'
},
{
close:function()
{
ad.show();

ad.qR();
},
exit:function()
{
ad.bcf();
}
}
);
},


init_:function(ap)
{
var ad=this;
ad.aj=ap,
$=ad.superEx_(av,"init_",[ap]).$;

var anG=al.lib("PLP.Data"),
bN="PLP.DCGeneral",
ix="PLP.DCList",
ae=ap.oTop;
for(var k in ap)
{
anG.post(k=='friend'||k=="sysmsg"?ix:bN,{
type:k,
value:ap[k]
});
}


if(window.gUnreadMsgUrl&&window.gUnreadMsg&&window.gUnreadMsg!=='')
{










aD.mergeCache({
update:'uininfo',
type:'uininfo',
set:window.gUnreadMsg['uininfo']
});

aD.setCache({
insert:'allunread',
modeltype:'list',
values:{
url:window.gUnreadMsgUrl,
aliasname:'allunread',
returnval:window.gUnreadMsg
}
});
}


anG.post('PLP.DCGeneral',{
type:'attr',
value:
{
copy:true
}
});


anG.addEvent(bN,"change",function(ar,bM)
{

switch(ar)
{
case'unread':


break;
case'opened':
ad.afn();
break;
}
}
);
ae&&$.call(ae.switchFolder,["folder_11"]);
ae&&$.call(ae.setFolderUnread,['folder_11',parseInt(ap.unread,10)]);

ad.afn();


ad.daE=ad.$.$("#bottle_paperlist div.paper_list_content");


if($.$("#littleDolphin").size()>0)
{
setTimeout(function(){
$.$("#littleDolphin img").attr('src',al.path("img")+'/bottle/skin/weather/flash_cove.gif').css('display','block');
},5000);
}


var au=al.lib("PLP.Data"),
aC=au.get('PLP.DCGeneral',{type:'attr'});

if(aC.weather&&aC.point>=30)
{
if(aC.weather.indexOf('\u6674')>-1)
{
$.$("#weather_sunshine").css('display','block');
}
else if(aC.weather.indexOf('\u96e8')>-1)
{
$.$("#weather_rain").css('display','block');
$.$("#weather_cloud_rain").css('display','block');
}
else
{
$.$("#weather_cloud_sun").css('display','block');
}


$.$('div.mytheme').css('display','block');
}
else
{
$.$('div.defaulttheme').css('display','block');
}


}
}
);
}
);




al.createLib(
"PLP.Compose",
{
bStatic:true
},
function(av)
{
return(
{







getCtrlName:function(sW,aH)
{









return{


2:'PLP.PictureCompose',
3:'PLP.InterestCompose',
8:'PLP.Compose.PreContact',
9:'PLP.DeliverCompose',
11:"PLP.Compose.Love",
13:"PLP.Compose.PreMood"
}[aH?-1:sW]||'PLP.Compose';
}
}
);
}
);


}


);


$.package(

"bottle/app/bottle.js",


[
],


function(ay)
{

var $=ay;




QMWin.createApp(

"PLP.Bottle",


{},


function(av)
{


return(
{










init_:function(ap)
{
var ad=this.superEx_(av,"init_"),
$=ad.$;




ad.aj=ap;
},


process_:function()
{
var $=this.superEx_(av,"process_").$;

$.$('#loading').hide();

$.lib("PLP.Stage",this.aj);


},


destroy_:function()
{

var $=this.superEx_(av,"destroy_").$;


}








}
);
}
);


}


);




window.gtime[1]=window.scriptTiming('bottlefirstscript');
